playMaker

Author Topic: Help on "loop state" action skipping "wait" action  (Read 718 times)

thunder

  • Playmaker Newbie
  • *
  • Posts: 22
Help on "loop state" action skipping "wait" action
« on: April 15, 2022, 11:23:17 AM »
I have 3 actions in my state( seen in my attachment), one spawns a object, then a wait action for 1 second, and then loop state action, I think it should wait for 1 second at each loop but whats happening here is that it waits for 1 second and then it loops only my "create object" action, it skips the "wait" action for some reason. I would like it to spawns my object and then wait 1 second and then loop all that for some times but not skipping my "wait" action. Someone can explain me that behavior and what should I do to achieve what I want? Thank you.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Help on "loop state" action skipping "wait" action
« Reply #1 on: April 17, 2022, 10:56:08 AM »
Hi.
your actions are starting in sequence but they will not wait to 'Finish'

For this you can right click on a empty space and enable Action Sequence.
now each action will wait to start until the previous is finished.

thunder

  • Playmaker Newbie
  • *
  • Posts: 22
Re: Help on "loop state" action skipping "wait" action
« Reply #2 on: April 17, 2022, 01:26:32 PM »
Thanks for the answer, but it still doesnt work fine. It loops 1 time and then it stops forever. It also is not storing the current loop value into the variable.

 I could do it by just not using "loop state" action, and just using FINISHED on my "wait" action and then pointing the arrow to the same state, but I would need a int counter to count each loop and then sending it to other state, but I really wanted to use that "loop state" action as it seems easier and better. Any more tips?

thunder

  • Playmaker Newbie
  • *
  • Posts: 22
Re: Help on "loop state" action skipping "wait" action
« Reply #3 on: April 17, 2022, 02:01:19 PM »
If I use it without a "wait" action, it loops fine, exactly the amount of times that I specified, but if there is a "wait" action on it, it loops 1 time and stops.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Help on "loop state" action skipping "wait" action
« Reply #4 on: April 18, 2022, 09:03:31 AM »
Hi.
yeah i tested and there seems to be an issue with it.
I will let Alex know.

meanwhile you can use loop instead :


thunder

  • Playmaker Newbie
  • *
  • Posts: 22
Re: Help on "loop state" action skipping "wait" action
« Reply #5 on: April 18, 2022, 01:06:14 PM »
Thank you for the support, it works now with the "loop" action.