Move_bounce_object - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

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.

Parameters

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)

Return Values

double: Returns the distance the instance has moved.

Example Call

//moves the instance down until colliding at which point it will bounce against solid objects
move_bounce_object(obj_wall, false, true);

NOTOC