playMaker

Author Topic: State changing during runtime  (Read 872 times)

gamafive

  • Playmaker Newbie
  • *
  • Posts: 4
State changing during runtime
« on: May 21, 2020, 12:19:12 PM »
Hello everyone!

I have a problem with one of my FSM :

I take an item of array and I try to put him in a other array (I've done this many times with no problems) : Images 1 & 2.

In runtime, the value is correctly taken on the first array (Image 3) but the next state show me the value equal "None" (Image 4).

What did I do wrong ?

Thanks for your replies !

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: State changing during runtime
« Reply #1 on: May 21, 2020, 02:52:51 PM »
Hi.
Double Check if Targets is the correct array type.

also sometimes if you changed the type after creating it might give an issue.

best is to remove the array action and create a new one.

gamafive

  • Playmaker Newbie
  • *
  • Posts: 4
Re: State changing during runtime
« Reply #2 on: May 21, 2020, 03:50:28 PM »
Hi, Thanks for your reply!

Unfortunatly, he problem persists.
Should I delete the array, recreate it and reassign the arrayactions?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: State changing during runtime
« Reply #3 on: May 22, 2020, 04:33:59 AM »
Hi, also remove the 'array add' and place again

loosing the variable (set to none) indicates a variable Type issue.

also you can try on a new scene with only the array setup, if you have the same issue.

gamafive

  • Playmaker Newbie
  • *
  • Posts: 4
Re: State changing during runtime
« Reply #4 on: May 26, 2020, 06:30:25 AM »
Thanks for yours answers!

It's a copy/paste problem beetween two differents FSM. Clear and recreate Arrays works!