Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: aydinu on March 03, 2014, 04:50:19 AM
-
Hi
I have a scene where instructions appear on screen and with clicking on objects in the scene I go through these steps/instructions using PlayMaker. All is working fine but I want to create 2 buttons (next and previous). Next will go to next state and previous button to previous state:).
I have searched on the forums on how to use this Go to Previous state but without luck. I don't have a lot of experience using PlayMaker but getting there:)
Any help would be appreciated
Thanks
-
GoToPreviousState goes to the last state the FSM was in, it can't be used to backtrack through multiple states.
If your button path is linear then its just a matter of telling the buttons to fire events that go to either the next or the previous state by making transitions to them. If it's not linear, then I think you would need to keep track of the path the user took and reuse that information when going forward/backward.
-
Thanks for the tip and I will try this out. It will be just linear
Aydin
-
Ok this what I have got and don't know how to continue from here:(
How do I make the buttons fire events that go to the next or previous states with the transitions as you mentioned? IS there an action that I need that can do this?
Thanks
Aydin
-
Have you seen this tutorial video?
-
I was going through his tutorials today:).
I watched the tutorial and it is all clear but the only thing that I can't find or how to do is the action that will take me to the previous or next state
Aydin
-
You simply need to send an event, and wire it up to the previous state. When you hit the button to go back, make that button fire the event that is wired up to go there.