[T2D iPhone 1.3 Beta] setSpeed for a Path
by Joe Virgin · in iTorque 2D · 11/18/2009 (3:59 pm) · 0 replies
setSpeed finally has the useful parameter %resetObject.
setSpeed(%object, %speed, [%resetObject = true])
Purpose
Sets the speed the object will move along the path at.
Syntax
%object - t2dSceneObject
The object to set.
%speed - Float
The speed to follow the path at.
%resetObject - Bool
If true, the object will reset to the start node. If false, the object will continue on the path.
Enjoy!
setSpeed(%object, %speed, [%resetObject = true])
Purpose
Sets the speed the object will move along the path at.
Syntax
%object - t2dSceneObject
The object to set.
%speed - Float
The speed to follow the path at.
%resetObject - Bool
If true, the object will reset to the start node. If false, the object will continue on the path.
Enjoy!
About the author
Joe Virgin is a programmer for Plainvue Software, Inc., a company producing iPhone games that teach math skills to the youth. Check out Fraction's Kitchen Lite, Fortune's Prime, and Chainshooter powered by iTGB and now available on the App Store.