Thread: Key events
View Single Post
Key events
Senior Member
jrrTolkien's Avatar
Status: Offline
Posts: 166
Join Date: Feb 2014
Location: Middle-Earth (Merrimack, NH)
Exclamation 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" 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.

Attached Files
File Type: a2w carTest.a2w (351.4 KB, 26 views)

Arwen: I would rather share one lifetime with you than face all the Ages of this world alone.

-April Signature
Reply With Quote