Returns false when colliding with a specified object while moving with object
mp_linear_object(Xgoal, Ygoal, StepSize, obj)
float
int
Type obj
Returns: bool
bool
This function will move with an object to a target position if an object will collide with a specified object, a function will return false.
if (mp_linear_object(10,10,20,typeof(oBrick)) == false) { show_message("hello world"); }
Above code will move with an object to X: 10, Y:10, if there will be an object named oBrick in a way function, will return false.
false
Back to Motion Planning
There was an error while loading. Please reload this page.