playMaker

Author Topic: Stargate dialer system storing combinations?  (Read 1127 times)

GothicGhost

  • Playmaker Newbie
  • *
  • Posts: 16
    • View Profile
Stargate dialer system storing combinations?
« on: September 05, 2015, 10:45:51 PM »
Morning all :)

I am trying find out what would be a good way on playmaker to store button combinations pressed then have it checked if they where pressed in a correct order?

Trying for hours but I am still new at this and it was making my head hurt lol.

Could someone point me in the right direction?
Thanks for any help.


mdotstrange

  • Hero Member
  • *****
  • Posts: 551
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Stargate dialer system storing combinations?
« Reply #1 on: September 05, 2015, 11:11:39 PM »
You can just lay out the correct buttons presses in order as states- on each one give a short wait time before it goes back to the start like 0.5 sec- if they input the correct sequence it gets to the end of your state sequence-

Like this
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

GothicGhost

  • Playmaker Newbie
  • *
  • Posts: 16
    • View Profile
Re: Stargate dialer system storing combinations?
« Reply #2 on: September 05, 2015, 11:15:45 PM »
Thank you very much I will give that go in a bit :D

I will report back soon :)


GothicGhost

  • Playmaker Newbie
  • *
  • Posts: 16
    • View Profile
Re: Stargate dialer system storing combinations?
« Reply #3 on: September 07, 2015, 02:31:41 PM »
I took what you showed me in the picture but used in game buttons you click with the mouse but using a keyboard or controller could be good as well I will do more testing with that later.

But test system is set up with momentary buttons with a master reset button as I need to set up some sort timeout action.
The way I done it probably the best way to go about this lol.

The master console  looks like this and waits for each button to used in the correct order to move from state to state.


Then each button has it's own FSM sending an event when pushed.

Thanks.