playMaker

Author Topic: Get Previous State Name help  (Read 1149 times)

crush

  • Playmaker Newbie
  • *
  • Posts: 24
Get Previous State Name help
« on: October 01, 2016, 11:59:50 PM »
Hi,
I'm trying to do something where I have jumped around in a manager I set up for weapons to a Global Transition state (Menu Active) and when i leave that state I want to jump back to the last weapon used.
I have tried using Get Previous State Name action, that stores this as a string, but am unsure how to proceed from there to make the state flow back into the last weapon used.
Thanks for any help and ideas on this.

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Get Previous State Name help
« Reply #1 on: October 02, 2016, 12:07:51 AM »
You could use the state name in a String Switch action with a transition to go to any state you want-
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!