Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Reply
 
Thread Tools Display Modes
help neaded with drag racing game
Old
ZW3039
Junior Member
 
Status: Offline
Posts: 4
Join Date: Dec 2010
Default help neaded with drag racing game - 12-14-2010, 02:51 PM

ok im making a drag racing game for my final project and i cant seem to figure out how to make the world stop after the first car gets to the finish line also i want as it stops to show the race times but that is also somthing i am having trouble figuring out. if some one knows how to help me or can do it for me wright back i need help my other problem is im trying to make my red light go off if i go before the green lite to end game and that is not working eather. i tired to just cancle the the let arrow keys move convertable corvett until the light turns green but im am having no luck please help me
   
Reply With Quote
Old
haven812
Guest
 
Status:
Posts: n/a
Default 12-14-2010, 03:50 PM

We can't do your school work for you, but I suggest experimenting with boolean variables. For example, for the part where you want the cars to stop, make it so whenever the car moves, it checks the boolean to see if it should move or not. i.e
Code:
if canMove
car move forward 1m 0.25 seconds
you can loop this until the car reaches the finish. You can also do the same thing with a while loop.
Code:
while canMove
car move forward 1m 0.25 seconds
when either car reaches the finish, set canMove to false...

I hoped this helped!
   
Reply With Quote
Old
Revolt
Member
 
Revolt's Avatar
 
Status: Offline
Posts: 33
Join Date: Oct 2010
Default 12-14-2010, 05:29 PM


How did you do that? With the code in the scroll boxes, I mean.
   
Reply With Quote
Old
haven812
Guest
 
Status:
Posts: n/a
Default 12-14-2010, 06:07 PM

Quote:
Originally Posted by Revolt View Post

How did you do that? With the code in the scroll boxes, I mean.
just highlight the text you want to be in code, then click the little code button at the top (#)
   
Reply With Quote
that makes no sense
Old
lsutigers
Guest
 
Status:
Posts: n/a
Exclamation that makes no sense - 12-14-2010, 07:36 PM

that makes no sense because it does not know if something can move or not and you dont tell it what to move...
   
Reply With Quote
Old
haven812
Guest
 
Status:
Posts: n/a
Default 12-14-2010, 07:39 PM

I didn't do the entire project for you and I am sorry for that. You should try experimenting with booleans and implement them in the drag racing game. I assumed you already knew how to make objects move
   
Reply With Quote
Old
Revolt
Member
 
Revolt's Avatar
 
Status: Offline
Posts: 33
Join Date: Oct 2010
Default 12-14-2010, 08:45 PM

Quote:
Originally Posted by haven812 View Post
I didn't do the entire project for you and I am sorry for that. You should try experimenting with booleans and implement them in the drag racing game. I assumed you already knew how to make objects move
If there was a clap emoticon, you would have earned it, my good sir! There are so many people asking for community to do their whole homework/projects to be done...
   
Reply With Quote
Reply


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