Changing acceleration speed.
![masterfar](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hi, what iam tryin to do is to get an actor to run, and the faster the actor is tapped on the faster i want him to run. Ive looked everywhere for information on this but just cannot figure it out. If any1 can give me the solution to this or som info it would be greatly appreciated thanks
Comments
Rule:
When actor is pressed and inside;
Change attribute Max Speed to Max Speed+10
Change Attribute self.linear velocity.X +10
To slow the actor down you could include either friction on the things he's running on, or on the actor itself.
Or you could use a timer or something: for every 5 seconds;
Change Attribute Max Speed to Max Speed-10
Change Attribute self.linear velocity.X-10
Hope that works for ya.
Only touch is pressed
The touch is inside condition is different than touch is pressed and also completed negated when you add it with touch is pressed. its just something extra the game engine has to read ever time it reads that rule.
I would actually do something like
When touch is pressed
--Accelerate at at a speed of 300 (play with that number to get it how to want it. )
Otherwise
--Constrain attribute self.linearvelocity.x to (self.linearvelocty.x*0.95)