This site requires JavaScript, please enable it in your browser!
Greenfoot back
UNDEAD_DC
UNDEAD_DC wrote ...

2014/1/22

Need help with speed booster

UNDEAD_DC UNDEAD_DC

2014/1/22

#
In my level i want a booster that changes the speed of the truck or the container for 5 or 10 seconds and after that goes back to normal speed, here is my scenario click the problem is the following when SlowDownT3 touches the front of the truck it stays in world and slows down the truck when it touches the back it does not get removed and truck speed soes not change. when I pauze the game and remove SlowDownT3 and play again speed wont go fast again any help on how i can make this work? code is publicated with my scenario: Here
UNDEAD_DC UNDEAD_DC

2014/1/22

#
Please anyone?
lordhershey lordhershey

2014/1/22

#
I will have to take a look at it a bit later, but you might look to some of those seconds counter examples that various people have posted; check out the http://www.greenfoot.org/scenarios/4013 scenario. you can use the same mechanism to count the seconds independent of the speed set on the scenario. you can have it affect the movement speed by either setting a speed variable or using it as a multiplicative operator on your movement.
You need to login to post a reply.