Assign Variable Icon Add Motion

This action accelerates the instance with the given speed in the given direction.

This is useful for controlling instances that accelerate gradually, like a space ship or a rolling ball, unlike, say, an RPG character which moves at a constant speed.

 

Action Syntax:

Assign Variable Action

Arguments:

ArgumentDescription
DirectionThe direction to accelerate in
SpeedThe speed of the acceleration

 

Example:

Assign Variable ExampleThis will cause the instance to accelerate in the direction of the sprite's rotation, with a speed of 0.1, if the up arrow key is held down.

You can modify the image_angle variable to turn the instance.