Move To Contact

With this action you can move the instance in a given direction until a contact position with an object is reached. If there already is a collision at the current position the instance is not moved. Otherwise, the instance is placed just before a collision occurs. You can specify the direction but also a maximal distance to move. For example, when the instance is falling you can move a maximal distance down until an object is encountered. You can also indicate whether to consider solid object only or all objects. You typically put this action in the collision event to make sure that the instance stops in contact with the other instance involved in the collision.

Properties: Value: Option: Option:
Direction Enter direction None None
Maximum Enter Maximum None None
Against Enter the horizontal coordinate Solid objects All objects
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License