MoveToAccurate
Introduction
The MoveToAccurate creates a set of Instructions for moving a PositionedObject to a given point in a set amount of time.
Code Example
The following code moves a Sprite to the position where the user clicks the Mouse. Note that this could be implemented with any PositionedObject, including any Glue entity. Add the following using statements to your Glue screen:
Add the following to your screen's CustomInitialize to show the mouse:
Add the following to your Screen's CustomActivity, assuming SpriteInstance is a Sprite in your Screen:
Last updated