Hello,
I'm having some problems setting up a reliable Array List Get Next FSM. I've found a thread on the forum which explains it clearly, so I understand what's going wrong, but I don't know how to fix it.
The problem is that the Array List Get Next action skips or misses some objects in the array, if the objects are de-parented and/or destroyed before the array get next list is complete.
Which is exactly what's going on in my Loop, the objects (enemy spaceships) can be shot/destroyed as the list is being run, and they are being de-parented, so the Array List Get Next fails to complete quite regularly.
Here's the Array List:
And here's the State/Actions in the Loop:
I have found a little work around; after the Finished event I put in a state which tests whether the Array is empty, and if not sends it back to the Array List Get Next state to finish it off. The problem with this is that it breaks the timing of the sequence, I have 10 enemy spaceships peeling off one by one from a pre-defined flight path, and it looks rubbish when the array list stops/checks for a moment.
So. How do I get round this? The other thread i found offers the outline of the solution, but I can't get my brain around it.
Here is the other thread:
https://hutonggames.com/playmakerforum/index.php?topic=21707.0Thank you in advance for any help.
J.