move_bounce_solid(adv);
参数 | 描述 |
---|---|
adv | Whether to enable advanced bouncing (true) or not (false). |
返回: 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.
move_bounce_solid(false);
This will enable non-precise bouncing off instances flagged as "solid".