Category: 2D Game Physics (Pro)
SetBodyPosition(body As Integer, x As Integer, y As Integer)
Void
Moves a body center immediately to an integer game coordinate.
Velocity is preserved. Use this for teleports or respawning, not for ordinary frame-by-frame movement.
Pro feature: compiling code that uses this function requires a license with the GamePhysics feature enabled.
SetBodyPosition player, 120, 200