Slot Machine Game Mechanics for Construct3

5

Index

Attached Files

The following files have been attached to this tutorial:

.c3p

c3-wizardtoad.c3p

Download now 1.5 MB

Stats

1,185 visits, 2,046 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY-NC 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 27 Apr, 2024. Last updated 18 May, 2024

Open this project's Event Sheet and add three (3) global variables. Here's what I've called mine.

  • reward = 0 -- prophecy of coming events
  • Rolling = 0 -- roll those eyeballs as if they were slot machine windows.
  • silver = 100 -- grants our gamer some cash; OR integrates with your parent RPG.

Let's add the following conditions when our game is launched.

I'm using W3Schools CSS as a project file. It is just as robust as BootStrap but thousands of bytes smaller! Doing so also avoids all those "hefty image" files that are replaced with CSS management. The "txt_story" is a short narrative from my parent RPG -- Legends-of-Renown-Deeds.com.

Animate the Eyes

As I said before, I've studied all of the C2 and C3 slot machine tutorials -- many of them were rather complex and "over-thought". In ours, we'll simply use the eyes.AnimationFrame and eyes.AnimationSpeed. The "Rolling" variable acts as a toggled light switch; the game is either spinning or not. My Events #3 to #6 are that spinning process. Events #7 to #9 stop the spinning process. See the illustration below.

  • 5 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • I downloaded this example, but can't find the error you're talking about. Could you give me a hint?

    And how do you use this slot machine in combat? I don't get it!

  • You're right! This "slot machine" is a #$R%^ of a lot easier to create. I'm getting dozens of ideas on how I could use this in an adventure game.

    • Glad to hear it. I'll make another tutorial about how to use this slot machine in an RPG duel. I have 11 different combat systems and this slot machine is just one method.