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,372 visits, 2,297 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

Event #10 sets up and assigns text feedback and prepares for the HUD results. It then calls our "workhorse" function (Events #11 to #32) to finalize this game turn.

Now that Event #10 has prepared everything, it's time for our "workhorse" function -- "consultTheToad" Events #11 to #32 -- to evaluate and post the HUD results. Let's take this in baby steps. OK?

"Consult The Toad" Function

  • Events #11 to #14 reset their local variables to zero and then preserve the eye.AnimationFrame in three "result" variables.
  • Event #15 searches for matches between the first two results (i.e.: if two eyes match). If both match, then the text HUD feedback is posted, a random reward is chosen, and the final summary is written. (NOTE: there is an intentional logic error here; see if you can find it! It is repaired in the Construct Asset Store edition.) Events #16 to #22 find specific feedback and appends it to the HUD feedback.
  • 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.