-
Notifications
You must be signed in to change notification settings - Fork 0
Move_bounce_object
hpgDesigns edited this page Aug 8, 2021
·
1 revision
Moves the instance in the direction (angle) until a contact position with the specified object is reached at which point it will bounce against other instances.
| Parameter | Data Type | Description |
|---|---|---|
| object | integer | objects to check moving against. can be an id, object index of keyword all |
| adv | boolean | whether to calculate advanced bounce which will work correctly for slopes |
| solid_only | boolean | whether to only move against solid instances or not (optional, default set to false) |
double: Returns the distance the instance has moved.
//moves the instance down until colliding at which point it will bounce against solid objects
move_bounce_object(obj_wall, false, true);
NOTOC
This is number 1