playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Enable FSM + Send Event + Debug problem
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Enable FSM + Send Event + Debug problem (Read 3776 times)
yezzer
Playmaker Newbie
Posts: 24
Enable FSM + Send Event + Debug problem
«
on:
July 08, 2012, 09:13:20 AM »
Hi,
I may be misunderstanding how PlayMaker works.
When entering a certain state, I want to enable a FSM, and send it an event. Simple, right? Well, the FSM is enabled, but the event is never received. Also, a debug log error is never triggered either.
Anyone know why this is?
This does
not
call the debug action
This
does
call the debug action
Thanks!
Logged
Freelance games & App developer using Unity3D, Flash & Adobe AIR for web, iOS, & Android. Interested in AR & other emerging tech.
@yezzer
Alex Chouls
Administrator
Hero Member
Posts: 4003
Official Playmaker Support
Re: Enable FSM + Send Event + Debug problem
«
Reply #1 on:
July 08, 2012, 09:32:39 AM »
Is the state still active after the Send Event? Any state changes triggered by an event are immediate. Actions are executed in order, from top to bottom, so if an action changes the active state, actions below it are not executed...
Logged
yezzer
Playmaker Newbie
Posts: 24
Re: Enable FSM + Send Event + Debug problem
«
Reply #2 on:
July 08, 2012, 09:46:37 AM »
Nothing else affects the state of this FSM in this situation.
The debug again is not called (this screenshot taken in playback) - it's as if subsequent actions aren't processed after Enable FSM is called. As you can see Debug Log is highlighted green, but no Debug error is shown, like it would be if the first action was disabled.
Logged
Freelance games & App developer using Unity3D, Flash & Adobe AIR for web, iOS, & Android. Interested in AR & other emerging tech.
@yezzer
yezzer
Playmaker Newbie
Posts: 24
Re: Enable FSM + Send Event + Debug problem
«
Reply #3 on:
July 08, 2012, 09:58:38 AM »
Further to this..
If I move the Debug Log to the top, it *does* work.
Unity pauses when the error is shown, if I then unpause, the Combat FSM goes to the state specified in Send Event:
BUT - I have the Debug Log *disabled* and at the top, it doesn't work:
Logged
Freelance games & App developer using Unity3D, Flash & Adobe AIR for web, iOS, & Android. Interested in AR & other emerging tech.
@yezzer
Alex Chouls
Administrator
Hero Member
Posts: 4003
Official Playmaker Support
Re: Enable FSM + Send Event + Debug problem
«
Reply #4 on:
July 08, 2012, 10:29:00 AM »
Strange... I'll investigate. It could be a bug...
Logged
yezzer
Playmaker Newbie
Posts: 24
Re: Enable FSM + Send Event + Debug problem
«
Reply #5 on:
July 08, 2012, 01:52:44 PM »
Thanks Alex. It's most likely I'm doing something wrong though
Logged
Freelance games & App developer using Unity3D, Flash & Adobe AIR for web, iOS, & Android. Interested in AR & other emerging tech.
@yezzer
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Enable FSM + Send Event + Debug problem