Move Prop Moveto
Student can animate a creative_prop with MoveTo over time (the animation arc's first rung, before ease curves and prop_mover in later zones).
move-prop-moveto in ~90 seconds.A heavy pirate crate glides smoothly off the Dolphin Bay dock and floats out to the sailboat right on cue, no physics explosions in sight.
The MoveTo method on a creative_prop handles that smooth animation, taking a destination position, a rotation, and the exact seconds it should take to get there.
We grab the prop's current rotation, define our target vector out in the sparkling bay, and call MoveTo to suspend the code while the crate sails over four seconds.
Reach for MoveTo whenever you need reliable, code-driven prop animations for moving platforms, opening bridges, or sliding puzzle pieces.
bay_mover := class(creative_device):
@editable
PirateCrate : creative_prop = creative_prop{}
OnBegin<override>()<suspends>:void =
TargetPos := vector3{X:=1500.0, Y:=0.0, Z:=200.0}
CurrentRot := PirateCrate.GetTransform().Rotation
PirateCrate.MoveTo(TargetPos, CurrentRot, 4.0)
Build your own lesson with move-prop-moveto
Generate a personalized, compile-checked lesson grounded in this exact reference.
Build a lesson →