Slot Machine Logic
ookami007
Member Posts: 581
Anyone know any good resources for slot machine logic? I want to try to make a slot machine with multiple rows and columns... say 5 x 5 like the new casino machines.
But, I'm trying to figure out to loop through the various items so that I can get the value of any of the 25 spots, not just the center line.
Any one know of any resources on this or tried implementing this in GameSalad?
Comments
I made a 3 symbol slot machine a few weeks ago for a bonus system in a game (will end up in my free stuff thread soon) but I didn't have anywhere like a good enough grasp on how the new slot machines function to be able to tackle one of those. They're like some kind of rocket science as far as I can see. If you provide a good explanation of the rules behind them I'd certainly have a stab at making one.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@DeepBlueApps has a free slot machine on their website.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
That's also the 3 symbol one unless he's made a new one and I've missed it, in which case I must grab it
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Yeah it's 3. But I wanted to mention it incase he wanted to build upon it to get to 5. :-)
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
You must not be a gambler These new machines are multiple rows of 5, with wins being found on diagonals and stuff. The odds are about the same though, from what I understand.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Hey when i made my slotmaina clone (3x5) i used tables to figure out their location.
I had a different actor for every column, hence I had five actors.
I add a simple rule to change position to the nearest 100 position (or what ever size your actors are).
Then I divided their position number by 100 and it will give me a solid number.
That number was then referred to in a table. row=self.position/100 col: self.Col
for example, the second column actor at a position of 400 y would refer to (table cell, 4,2)
In the table, you just name each cell their unique code as to how you want to actor to be known in its position. (a simple 1 -25 would be easy enough)
therefore top line would consist of actors ID, 1,6,11,16,21
second line: 2,7,12,17,22
middle line: 3,8,13,18,23
fourth line: 4,9,14,19,24
Fifth line: 5,10,15,20,25
Diagonal line : 1,7,13,19,25
etc.
You would also need to put their image values (cow,pig,horse,pot of gold) into another table.
And thats how i found the ID of each 25 actors after a spin was made.
(the hard part is calculating a win, I might need to drop a file for that explanation)
Ha! I gamble plenty! You should see how many M&M's I've won while playing poker.
Yep, I'm a reckless gambler.
I want to say that GameSalad released a slot machine game to their App Store publishing branch, but I don't see a template for it on their marketplace page.
Good advice from @Jeromy - that's the direction I'd go.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx