Sets a game objects direction and speed of movement
motion_set(dir, speed)
double
Returns: void
void
This function will move with your GameObject in given direction at given speed. Speed is measured as pixels per step or call.
motion_set(270, 5);
The above code will move the current GameObject downwards at a speed of 5 pixels per inch.
Back to Movement
There was an error while loading. Please reload this page.