playMaker

Author Topic: State machine seems to break after 2 rounds? [SOLVED]  (Read 1556 times)

Caro

  • Playmaker Newbie
  • *
  • Posts: 22
State machine seems to break after 2 rounds? [SOLVED]
« 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!
« Last Edit: May 20, 2018, 08:25:26 AM by Caro »

Athin

  • Full Member
  • ***
  • Posts: 163
Re: State machine seems to break after 2 rounds?
« Reply #1 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.

Caro

  • Playmaker Newbie
  • *
  • Posts: 22
Re: State machine seems to break after 2 rounds?
« Reply #2 on: May 20, 2018, 08:23:46 AM »
Ah of course, thank you! :D

Athin

  • Full Member
  • ***
  • Posts: 163
Re: State machine seems to break after 2 rounds? [SOLVED]
« Reply #3 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.