Allows bouncing of the calling instance against solid objects, such as walls.



Argument Description
adv Whether to enable advanced bouncing (true) or not (false).

Returns: N/A


With this function you can command an instance to bounce off only those instances marked as solid within the room. You can also tell it to use precise collision checking when enabled, but be aware that this requires all instances to have precise masks enabled and will greatly slow down your game when many instances are involved due to the amount of processing that has to be done. This should normally go in the step event of an instance, but can be used selectively in a collision event too.



This will enable non-precise bouncing off instances flagged as "solid".

Back: Moving Around
Next: move_contact_all
© Copyright YoYo Games Ltd. 2018 All Rights Reserved