Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   controls for racing game (http://www.alice.org/community/showthread.php?t=8175)

esmith261 03-04-2012 09:43 AM

controls for racing game
 
My project is to create a racing game with animals, so I chose turtle v. rabbit. The goal is to be able to control the movements of the turtle with the keyboard (up, left, right, down arrows) and the rabbit is to be controlled by the computer. I was wondering what the easiest way to go about this was.. Any suggestions on how to do this?

TauTrumpsPi 03-04-2012 11:34 AM

[QUOTE=esmith261;47125]My project is to create a racing game with animals, so I chose turtle v. rabbit. The goal is to be able to control the movements of the turtle with the keyboard (up, left, right, down arrows) and the rabbit is to be controlled by the computer. I was wondering what the easiest way to go about this was.. Any suggestions on how to do this?[/QUOTE]

Well, the easiest way to go about it would be to say "let the arrow keys move [I]object[/I]", but you can also use the when a key is pressed right click change to while a key is pressed.

For the computer controlled, you just need a bunch of organized move commands that will get it through the course.


All times are GMT -5. The time now is 12:45 AM.

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