Alice Community  

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

Reply
 
Thread Tools Display Modes
I need help with if statements
Old
lord_dark_helmet131
Guest
 
Status:
Posts: n/a
Default I need help with if statements - 01-23-2008, 10:12 AM

I want to make a horse racing game, where when you click on a horse, you choose it, and if that horse wins, you get a sign saying "YOU WIN!" but if that horse losses you get a sign saying "YOU LOSE!" is there a way to set a "When Mouse is clicked on _____ Do _____" to select the horse and combine that with an IF statement to basically say, if the horse you clicked on won, you get a winning banner and if not you get a losing banner?
   
Reply With Quote
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default 01-23-2008, 10:48 AM

Quote:
Originally Posted by lord_dark_helmet131 View Post
I want to make a horse racing game, where when you click on a horse, you choose it, and if that horse wins, you get a sign saying "YOU WIN!" but if that horse losses you get a sign saying "YOU LOSE!" is there a way to set a "When Mouse is clicked on _____ Do _____" to select the horse and combine that with an IF statement to basically say, if the horse you clicked on won, you get a winning banner and if not you get a losing banner?
This sounds similar to my drag race game at http://www.alice.org/community/showt...highlight=drag

You may also want to spend some time with my free online tutorials at http://www.dickbaldwin.com/tocalice.htm

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm
   
Reply With Quote
Reply

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.