im doing a horse racing game where u make a bet and u click on a number from 1-5 for a horse..it then goes to a racing stage withe 5 horse sprites racing. how do i make it that if that i pick a number and that number horse wins the money goes i have goes up
Offline
Hiya, this is actually pretty simple. All you need is one variable,called 'horse' , five horses, and a finish line. First, make it so when green clicked, set 'horse' to zero, and move horses to start position. Then make it so each number has a script that goes 'if clicked - if horse equals zero, set 'horse' to (the number clicked)'. This allows you to pick a horse. Now make a script for each horse that says 'when green clicked, forever, if 'horse' > zero, move random between 1 and 10 steps, until touching finish line'. This makes it so each horse moves at a random speed towards the finish line. Next, make 5 scripts for finish line which go 'if touching (first horse), if 'horse equals one, then increase money by 10', or whatever. Repeat for other horses, but with different numbers for 'horse' and the horses number.
Vice versa for if your horse loses.
Hope this helps.
Offline
Thanx for the Information !
____________________________
Online Sports Betting Odds, Tips UK
Online Horse Racing Betting Odds UK
Last edited by rocky007 (2007-12-28 04:12:11)
Offline