Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Key events
Old
jrrTolkien
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 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
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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.