PlanBaseTransportToPoint Method |
Moves the specified sprite to the specified coordinate.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax Remarks This very simply sets the position of the sprite to a specified
coordinate. No tests are performed for solidity and no velocity is
changed. The old position of the target sprite, however, is tracked, so it's
still possible to determine if the sprite was touching a tile or plan before
it moved with a function like
WasSpriteTouching(SpriteBase).
Examples
The following example could be used to move a sprite to the mouse's location
to make it behave like a mouse cursor.
TransportToPoint(m_ParentLayer.m_Plasma_1, ParentLayer.GetMousePosition());
See Also