
-----------------------------------
Scooter341
Thu Apr 14, 2005 8:04 am

Slot Machine help
-----------------------------------
I'm trying to now susbstitute pictures for letters in my slot program but i have no idea how to do it? can anyone here help me?

-----------------------------------
jamonathin
Thu Apr 14, 2005 8:09 am


-----------------------------------
Use an array.
var pic : array 1 .. 5 of int
pic(1):=Pic.FileNew("cherry.bmp")
 . . .
pic(5):=Pic.FileNew("grape.bmp")

Now keep yoru random part, just do this:

Pic.Draw ( pic (random_numb), x, y, picMerge)

just find a place to put the pictures, and do that instead of "put"ing the numbers.

-----------------------------------
Scooter341
Fri Apr 15, 2005 9:30 am


-----------------------------------
i tried that and it came up with an error saying that the environment had a fatal error and then it crashed. Anyone else got ideas?

-----------------------------------
jamonathin
Fri Apr 15, 2005 11:20 am


-----------------------------------
i tried that and it came up with an error saying that the environment had a fatal error and then it crashed. Anyone else got ideas?
The enviroment had a fatal error?  Maybe there's something else you should worry about.  Either you need to update or your code is messed up, because that's the easiest way to do it.
