Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: GothicGhost on September 06, 2015, 01:45:51 AM

Title: Stargate dialer system storing combinations?
Post by: GothicGhost on September 06, 2015, 01:45:51 AM
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.

Title: Re: Stargate dialer system storing combinations?
Post by: mdotstrange on September 06, 2015, 02:11:39 AM
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
(https://copy.com/thumbs_public/ntljef3ldqZMYne7/fsm.png?size=1024)
Title: Re: Stargate dialer system storing combinations?
Post by: GothicGhost on September 06, 2015, 02:15:45 AM
Thank you very much I will give that go in a bit :D

I will report back soon :)

Title: Re: Stargate dialer system storing combinations?
Post by: GothicGhost on September 07, 2015, 05: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.
(http://s30.postimg.org/o7xceg801/image.jpg)

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

Thanks.