playMaker

Author Topic: Lock states  (Read 1967 times)

lildragn

  • Playmaker Newbie
  • *
  • Posts: 37
    • View Profile
    • Videogame-art.com
Lock states
« on: October 20, 2012, 04:50:01 AM »
Hiya, I found myself wanting this feature more and more while working and trying to see what's happening in a specific state. Right now I would have to time my game pauses if I wanted to see what numbers e.t.c are changing. This is especially annoying when you have states that constantly flow in an out of each other like A.I. movements. :)

thx!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13002
  • Official Playmaker Support
    • View Profile
Re: Lock states
« Reply #1 on: October 22, 2012, 12:37:51 AM »
Hi,

 I need this too, and for that, the best way currently is that have another FSM acting as an "interface" to your ai fsm, so your ai fsm is controlled by your interface fsm, and your interface manage the pause state of your game of feature, and simply hide this to the ai fsm, but not triggering any state changes if it should not.

does that make sense?

bye,

 Jean

amaranth

  • Full Member
  • ***
  • Posts: 172
    • View Profile
Re: Lock states
« Reply #2 on: October 31, 2012, 01:18:14 PM »
Me too! This would be incredibly helpful.

Sjones

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Lock states
« Reply #3 on: October 31, 2012, 02:16:37 PM »
+1

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • View Profile
    • Blog
Re: Lock states
« Reply #4 on: November 02, 2012, 03:35:20 PM »
+1

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3298
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Lock states
« Reply #5 on: November 14, 2012, 12:57:23 AM »
I'm not sure I follow... Do you want to be able to select an FSM in the editor and say "Lock in current state", IOW, don't respond to any events...?

lildragn

  • Playmaker Newbie
  • *
  • Posts: 37
    • View Profile
    • Videogame-art.com
Re: Lock states
« Reply #6 on: November 14, 2012, 04:25:23 AM »
Hmm not exactly... I would like the events and such to continue to flow through it, just lock the specific state chosen. So it's easy to monitor the values from that specific state. Not sure if I'm explaining it right :)

~t

theBrandonWu

  • Playmaker Newbie
  • *
  • Posts: 18
    • View Profile
    • Studio Pepwuper
Re: Lock states
« Reply #7 on: June 11, 2018, 05:53:40 AM »
This seems to be an old request so there might be an update on this already but I couldn't find it. Is there a way to stop the PlayMaker inspector from jumping to active state during play mode?
Studio Pepwuper: http://www.pepwuper.com
One Month Game School: http://www.onemonthgameschool.com/

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3078
    • View Profile
    • jinxtergames
Re: Lock states
« Reply #8 on: June 11, 2018, 08:33:36 AM »
Hi.
if you want to see what happens to the variables you can show them in the inspector by going to the variable page, select a variable and 'check' Inspector.

On the fsm in the inspector you can see them in the Controls section.

if you wish to know which values it has in a certain state, place a breakpoint (Right click and set Toggle Breakpoint)
on the next state after the one that you wish to know the value from.

This will pause the game, unpause to continue the game