Key events -
05-24-2014, 06:58 PM
Okay, so I'm trying to make a racing game in Alice, but I have encountered an error in my programming. I have "while UP is pressed, do car.drive" I made it "realistically" accelerate (I think it's realistic, anyway.) Then, I have "after (the key is pressed), do car.stop." Then, it slows down. I attached my program so you can see how it works and everything. The problem I have is that when I let go of the button, it slows down until the mph hits 0. If I try to speed up again, it won't until mph reaches 0. Is there some way to speed up while keeping the acceleration and deceleration? If I'm not being clear, please say so.
-Jrr
Arwen: “I would rather share one lifetime with you than face all the Ages of this world alone.”
-April Signature
|