Jump to content

Looking to create a 'Slot Machine', Help??


Snooble

Recommended Posts

Hey everyone,

 

I'm starting a project, I want to create a working slot machine, with balance, amount of spin, animated slots, it all.

 

I'm guessing i need a client side, and a server. For the server i'd like to use PHP, for the client, i think flash? (Suggestions welcome)

 

I have a pretty good knowledge of php. To start with, It's going to have to use a lot of rand(), and i'm going to have to work out probability.

 

My question to you all is, is it possible to pass variables between php and flash? if so, how, and how would you go about making it?

 

I want it to be 5 reels with multiple win lines.

 

Thanks in advance for your help.

 

Snoobs

Link to comment
https://forums.phpfreaks.com/topic/125760-looking-to-create-a-slot-machine-help/
Share on other sites

with flash there are a couple of ways to send data from php to flash.

a couple of plausible solutions are:

1. amfphp

2. loadvars

3. xml data exchange

4. javascript calls (using a flash framework/library so you can use external javascript to do actions inside flash)

 

and there really isnt a best solution for choosing your client solution.

you could use a couple of things like:

1. ajax

2. Silverlight

3. Flash

4. Java applet

 

 

So I'll create it in Flash and PHP. I've looked into exchanging variables and it seems fine.

 

Can someone please give me a sample script to take a variable from php ($1a) and output the correct image (switch statement?) in flash?

 

As I need somewhere to start.

 

Thanks so much for your help.

 

Sam

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.