Glide Forward 1 Second
Glide an object forward over 1 second when a button is clicked.
Introduction
Glide Forward n Seconds moves an object forward smoothly over a set time. It adds 1 unit in the object's forward direction to its Position, and the trip takes 1 second. This is how a button glides an object forward. caption Glide the object forward when a button is clicked: When button is clicked by Player -> Glide (this object, Group.Position, Add, 1 x Self.Group.Forward) wait 1 sec
Steps
Add the event When button is clicked by Player. Add a Glide command under it. Set the target to this object and pick the property Group.Position. Set the mode to Add and the value to 1 times Self.Group.Forward, with a wait of 1 sec.
When to use it
A button that glides an object forward. Moving platforms and objects that slide forward. A short dash forward, for example 1 unit over 1 second.
Notes
The object glides forward 1 unit over 1 second, change the 1 to move further or the wait to take longer. Forward means the direction the object faces, so the object moves where it points.