View Full Version : slot machine game on flash help!
sandwhich01
04-14-2009, 07:36 PM
Dear users, i'm new to using flash and i am in need of some assistance. I'm trying to make a slot machine game with randomized movie clips for the reels. I also need help figuring out how to assign how much "money" will be given for each win. ie: if the player spins 3 sevens. any and all help would be much appreciated : )
neilmmm
04-14-2009, 09:51 PM
hi
you need to break your problem into smaller parts and deal with each one in turn rather than the whole thing
with each bit start a new thread, post the code you have so we can see where you are going
alternatively ... cartoon.smart has a video tutorial you could buy regarding slot machine games and would walk you through the whole process
Hello sandwhich01,
I've done something similar in the past, let's see if I remember some useful stuff :)
First of all, you need to know that a slot machine is just a randomizing thing that continue to generate sequences even if noone is playing on it. So basically you need (say in case of a 3 reels slot) to continuosly generate numbers (say from 1 to N where N is the number of items for any reel) until the player push the button or pull the lever.
At that precise moment, you get the 3 generated numbers and that is the sequence that the slot will visualize. The visual stuff and all fancy effects are just a show but the sequence is already decided under the bonnet :)
Well then, I suggest you to start with something very basic, like the number generator, put 3 texts on the stage and a button, on enter frame continue to generate numbers until the player press the button. After the button is pressed, save/print the current 3 numbers. That's the slot. From there, just have a look of some slots games you can find online and draw the visual part as you like until you reach the effect you want. That's all :)
Hope this helps, good luck!
sandwhich01
04-16-2009, 07:26 PM
fxn, thanks soo much for your help! but now do you know the right action script to assign the movie clips as numbers so i can add the randomizing action script?
and neilmmm haha i would post what i have been working on but really all i have now are the buttons and all the background. and thanks for the video tutorial idea :) sorry guys, im really new with all this...
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.