Creating a slot machine

For questions about using Classic.

Post » Tue Aug 23, 2011 1:12 pm

Hi everyone!
I'm asking for your help because I'm having some troubles creating a Slot Machine.

I'm actually working on a game where the bonus system is like a Slot Machine, like in Crisis Core: Final Fantasy VII if you've played it.

I was thinking of creating an animation and let it end on a random frame, each frame related to a private variable.
So when it stops, the right image is on screen and the bonus is added to the character.
But maybe it's too much complex and anyways I didn't found how to do it.

Too more question:
- Is there a way to pause the entire game to play an animation ? Like the game is running, the player press a button, the game pauses and the roulette starts and when it's done, the game resumes.

- Is there a way to get the source code of a Construct game in Python and import it in an other engine like Ren'Py ?

Thank you in advance!Perri2011-08-23 13:14:45
B
3
G
1
Posts: 2
Reputation: 479

Post » Tue Aug 23, 2011 8:46 pm

[QUOTE=Perri] Hi everyone!
I'm asking for your help because I'm having some troubles creating a Slot Machine.

[/QUOTE]

There is an example of a slot machine created by ROJOhound using C2.

You can find it in 'Your C2 tests'(on page 2)
---------------------------------------------

Can't help with the other stuff.

Good luck
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Tue Aug 23, 2011 8:52 pm

The direct link to what chrisbrobs is referring to is HERE.

Here is a (very) rough conversion to CC. Credit is given to R0J0hound for all the code.

Rough Slotszenox982011-08-24 14:13:08
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,849
Reputation: 48,299

Post » Wed Aug 24, 2011 6:38 pm

Thanks for this, it is really helpful!
B
3
G
1
Posts: 2
Reputation: 479


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests