playMaker

Author Topic: Problem with instances creation order[SOLVED]  (Read 842 times)

Zenfish

  • Playmaker Newbie
  • *
  • Posts: 13
Problem with instances creation order[SOLVED]
« on: September 15, 2021, 08:48:25 AM »
Hi,
I'm struggling with a stupid problem and i don't have any ideas to solve it.
I made an FSM with a simple loop:
1-intialize 2 var int (one will be incrementedand the other will be the limit before stopping the loop)
2-Compare thoose 2 int to be sure the conditions is Ok to stay in the loop
3- Create Object (prefab instance), a little Y offset to see everything and show var Int value on it.
4- Increment the Int var for next loop till it reach the limit.

The loop run fine except that the supoosed last object is created first and comes to be placed first...why? T-T
In this exemple the limit was 8 (equal or greater means end of loop)
I don't know why the first object created is number 7 (should be 0)
Hope someone can help, thank you in advance
« Last Edit: September 15, 2021, 01:26:33 PM by Zenfish »

Zenfish

  • Playmaker Newbie
  • *
  • Posts: 13
Re: Problem with instances creation order
« Reply #1 on: September 15, 2021, 01:25:10 PM »
Reply to myself :
3- Create Object (prefab instance)-> Store object in a variable and then use this var in "setFSMString" (using the prefab as target dosen't work well in that case)