The Daily Click ::. Forums ::. Klik Coding Help ::. Slot Machine
 

Post Reply  Post Oekaki 
 

Posted By Message

Schmorguzmorgan



Registered
  30/03/2006
Points
  3
22nd August, 2006 at 11:31:15 -

I'm currently working on Wars of Steel, a mechwarrior platformer/shooter/RPG. I have encountered an issue, not with complex robot movement or whatever, but with a task as seemingly simple as making a slot machine for the Casion feature of my game. It's not that I'm stumped, it's just that the way I'm currently going about making the slot machine seems impractical. For one, my technique involves me setting up an event for EVERY slot combination. Also, instead of actual slot movement (The slots move down or up, and there's some skill in timing the stops), you simply tap the Fire 1 button, and the images appear randomly. (Removing any potential need for skill)

I've checked the tutorials and articles for something of assistance, but to no avail.
Does anyone have a good system for Slot Machines?

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
22nd August, 2006 at 11:45:49 -

There's a KnP example thingy. It uses a list of items per slot so it isn't random, too.

 
Old member (~2004-2007).

Schmorguzmorgan



Registered
  30/03/2006
Points
  3
22nd August, 2006 at 13:34:34 -

I've run a search and can't find anything.

Link?

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
22nd August, 2006 at 14:06:12 -

could you not create a set of three counters and see if they are all equal and then "award" the correct prize as relevant. for example if alcounters 1 2 and 3 are equal then award 20 * "number on counter 1". just an idea. you can then assign each number a picture. or use a picture counter and just repeat the frames in each counter. if you want i will create an example for you. im assuming you are creating this in mmf

 
n/a

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
22nd August, 2006 at 14:29:52 -

You could use an array, aaand whichever object the slot lands on, it sets the array position of that slot to the value of the item

i.e
Slot(1)=3
slot(2)=3
slot(3)=3

Then, have a pre-determined list of prizes
i.e
1 knife
2 axe
3 sword
4 cheese
5 pr0n
6 smelly socks
7 Big weapon of +20 pwnage

Now you can make an event which checks to see if slot(1) is equal to slot(2), and slot(2) is also equal to slot(3)
then, award a prize based on the value in slot(1)
however, i think TGF/MMF have the first line as 0, so you may have to subtract 1 from the value of the slot

 
My signature is never too big!!!

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
22nd August, 2006 at 15:39:49 -

You don't need a link, download KnP. The example comes with it.

 
Old member (~2004-2007).

Schmorguzmorgan



Registered
  30/03/2006
Points
  3
22nd August, 2006 at 19:15:52 -

Thank you.

This information is very helpful.

And yes, I am using MMF, and if you're not too busy with other projects, you can whip up an example.



 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
22nd August, 2006 at 19:45:02 -

ok ill have one in a day or so for you.

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
22nd August, 2006 at 20:29:23 -

done it already for you go to http://lembimmf.white.prohosting.com to find the Slot Machine Example file. hope it is of some use. fully commented and only 3 events!!!

 
n/a

UnknownAlly



Registered
  01/09/2007
Points
  195
4th January, 2009 at 15:41:08 -

Can someone fix the link?

I need this example

 
-UnknownAlly http://unknownally.110mb.com
   

Post Reply



 



Advertisement

Worth A Click