PDA

View Full Version : I need help with if statements


lord_dark_helmet131
01-23-2008, 11: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?

DickBaldwin
01-23-2008, 11:48 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?

This sounds similar to my drag race game at http://www.alice.org/community/showthread.php?t=1008&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