Hello,
I'm new to Unity, PlayMaker and FSM and I'm doing my first 2D game in order to learn.
It's another Flappy Bird clone.
I have one prefab for the pipes, and it has a FSM with a "Moving" state, that keeps watching the object position and comparing to a "Reset Position" float variable, every frame.
If the pipe's position is less than the reset position, I go to a "Reset Position" state where I move the pipe to the spawn position to the right, instead of destroying it and creating a new one.
The problem is that I'm getting this error message:
FSM : Loop count exceeded maximum: 1000 Default is 1000. Override in Fsm Inspector.
After looking some threads in this forum I'm wondering now if this is a good practice.
It looks like that I shouldn't do this, instead I should use some reset trigger object at the left of the screen and respond to a on trigger event, and then send an event to the pipe FSM.
Is that correct? Is there a better design for this scenario?
Thanks,
Alexandre