Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / slot machine reels help

Author
Message
PeterLewis
20
Years of Service
User Offline
Joined: 27th Sep 2003
Location: South Africa
Posted: 2nd Oct 2003 13:30
I am trying to design a slot machine. The problem I have is as follows:-

Each reel has 40 images , some are repeated. In the game you can change to order and quantity of each image on each reel.

Changing a virtual table.

Any ideas of how to get a blank reel spinning in the game and adding images to the reel that are in a array ?

Images are in any graphic format

Thanks
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 2nd Oct 2003 19:39
If you have drawn them as animated fruits that actually look as though they shrink, and go round a corner you can just paste them down. There's no need to paste the background over them or a blank reel. Put the fruits permanently on a blank reel image so that they wipe themselves off the screen. That is fast. The array is easy. Just fill it with the numbers of the images.

Pincho.
Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 2nd Oct 2003 21:37 Edited at: 2nd Oct 2003 21:39
my 1st DB project was a slot machine. I used 3d reels (which are very easy to make) and saved the reel information in arrays like this:

reel(4,36)
reelpointer(4)

real pointer pointed to the element in reel() ie:

pseudo code:
for c=1 to 4
xrotate reelobject(c)
inc reelpointer(c)
if reelpointer(c)=37 then reelpointer(c)=1
next c

now to find out what position of reel 1 is on win-line you use:
reel(1,reelpointer(1))

if u wanna look at my prog:

http://www.mikenmaz.btinternet.co.uk/fruitmatrix.html

Login to post a reply

Server time is: 2024-05-05 13:06:05
Your offset time is: 2024-05-05 13:06:05