Alice Community  

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

Reply
 
Thread Tools Display Modes
Race Car Game
Old
91362
Guest
 
Status:
Posts: n/a
Exclamation Race Car Game - 11-15-2009, 02:21 PM

Ok I am currently making a race car game for my computer class. I have two cars racing. One car is controlled by the computer and the other is controlled by the user. Making the computer drive the car around the track is easy and doesn't require much work but making the other car interactive has caused me problems. The only problem I seem to have is that When creating an event to control the car with the arrow keys, the car moves at a sluggish speed... and it needs to be much quicker. I also tried writing the move commands as methods and then making them events, but the problem there is you cant just hold down the up arrow key and go forward but you have to type the key each time. Any Ideas how I could make controls for the cars with the arrow keys that avoid these problems?
Attached Files
File Type: a2w DragRaceTimes.a2w (2.00 MB, 243 views)
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 11-15-2009, 03:54 PM

Just right click the motion event and change it to a "while a key is pressed" event and put a "car move forward .05 meters duration 0 seconds" method in the during part of the event.


(')>
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 12-18-2009, 02:31 PM

Good job on this


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Reply

Tags
arrow keys, race car

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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.