playMaker

Author Topic: Array Length not reporting the items? [SOLVED]  (Read 634 times)

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Array Length not reporting the items? [SOLVED]
« on: September 04, 2021, 10:00:33 AM »
As you can see, I'm having an incoherent result in the array length: there are 3 items, but 0 length is reported.
« Last Edit: September 04, 2021, 03:15:16 PM by PolyMad »

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: Array Length not reporting the items?
« Reply #1 on: September 04, 2021, 10:07:03 AM »
Wait... the BREAKPOINT happens BEFORE executing any actions in the state?
That's why I didn't see it changing...
Wouldn't it be better if it happened at the end of the state?
But I guess then there would be problems because the actions could send out transitions etc.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Array Length not reporting the items? [SOLVED]
« Reply #2 on: September 05, 2021, 08:42:21 PM »
Hi.
you can also use Debug Log action and set it to error and set it as last in the state

then it should have started previous actions before pausing.

but indeed breakpoint after triggering actions woud indeed have issues :)

ch1ky3n

  • Full Member
  • ***
  • Posts: 208
Re: Array Length not reporting the items? [SOLVED]
« Reply #3 on: September 05, 2021, 10:06:51 PM »
Always new stuff from Djaydino! ;D

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Array Length not reporting the items? [SOLVED]
« Reply #4 on: September 06, 2021, 08:08:10 AM »
Hi.
yeah :D

Actually Debug actions been there for a long time :)

They are very useful to debug in build (log file)
and give info in editor console :)

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: Array Length not reporting the items? [SOLVED]
« Reply #5 on: September 06, 2021, 10:50:31 AM »
Cool thank you!