-
-
Notifications
You must be signed in to change notification settings - Fork 18
move_towards_point
CryoEagle edited this page Jan 8, 2019
·
4 revisions
Move with object to given position
move_towards_point(point, pixels)
Argument | Description |
---|---|
Vector point |
Target position |
double pixels |
Pixels to move |
Returns: void
This function will move with your GameObject to given position.
move_towards_point(new Vector2(2, 0), 4);
The above code will move GameObject to left upper corner.
Back to Movements