Skip to content

move_towards_point

CryoEagle edited this page Jan 8, 2019 · 4 revisions

move_towards_point

Move with object to given position

Syntax:

move_towards_point(point, pixels)
Argument Description
Vector point Target position
double pixels Pixels to move

Returns: void

Description:

This function will move with your GameObject to given position.

Example:

move_towards_point(new Vector2(2, 0), 4);

The above code will move GameObject to left upper corner.

Back to Movements

Clone this wiki locally