I was wondering how you could save in private variable speed and direction at a specific point
preferly for platform movement or custom movement
Develop games in your browser. Powerful, performant & highly capable.
Well. You can make an invisible block with no solid attributes or anythig. Then you can say:
Player:On collision with INVISIBLE block:Set private variable speed=player[Platform].Speed
and in the same event:player:set private variable angle=player.angle
Here is a cap:http://dl.dropbox.com/u/7605789/Privatevariable.cap
What would you use this for anyway? Just curious. . .
If you don't want to create a dummy object you could also use a small loop.
Be sure to use int() tho...or the comparison might not ever hit.
+ System: For "n" from 315 to 325
-+ System: int(Sprite.X) Equal to LoopIndex("n")
--+ System: Trigger once
----> Sprite: Set 'speed' to Sprite[Platform].Speed