Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Caro on May 20, 2018, 08:08:15 AM

Title: State machine seems to break after 2 rounds? [SOLVED]
Post by: Caro on May 20, 2018, 08:08:15 AM
Hi all! I'm just starting to learn Playmaker and I love it! So I'm making my first tiny game and I've already run into a problem that I cannot fix - I tried searching and all but without luck.

It's super simple what I'm doing so it's probably something super simple fix.

So 3 objects 2 of them with an FSM. Red, Green and Blue box. Green has no FSM and is deactivated.

I click Blue - Blue deactivates and Green activates. I click Red - Green deactivates and Blue reactivates. I can only do this one time - the second time I activate the Green box - clicking Red then will have no effect anymore. What am I doing wrong?

https://drive.google.com/open?id=1wgj8EAXp_fCi432mUDUA8OPZHT6LYenk

https://drive.google.com/open?id=1JBXxXICT6_EUub6bvQrTTXSZGd9fX-I4

Thank you!
Title: Re: State machine seems to break after 2 rounds?
Post by: Athin on May 20, 2018, 08:17:31 AM
You need to have a finish transition in State 2 that returns to the first State.  Thats why it only works one time as once it hit State 2 it was a dead end.
Title: Re: State machine seems to break after 2 rounds?
Post by: Caro on May 20, 2018, 08:23:46 AM
Ah of course, thank you! :D
Title: Re: State machine seems to break after 2 rounds? [SOLVED]
Post by: Athin on May 20, 2018, 08:27:30 AM
No Problem.

We all have those moments new and old :)  Forums I found are pretty friendly and helpful so don't be afraid to ask around.