playMaker

Author Topic: Arraymaker processing time  (Read 1538 times)

kretin

  • Playmaker Newbie
  • *
  • Posts: 7
Arraymaker processing time
« on: July 23, 2014, 01:30:59 AM »
I have some operations involving arraymaker, creating array values, using those as indices to to copy other arrays. I then create a series of prefab cards featuring the array values.

I find on slower processors/devices that the first card doesn't get the array value. It seems that although I wait until the array process is complete to deal the cards, that the array process is still finishing. Other than adding a predetermined delay, is there a better way to determine when the arrays are completed?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Arraymaker processing time
« Reply #1 on: July 30, 2014, 05:53:31 AM »
Hi,

 you should wait for one frame in these cases. So when you add an entry, only process that new entry after you have waited one frame, use the action "next frame event" for this.

Bye,

 Jean

kretin

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Arraymaker processing time
« Reply #2 on: July 30, 2014, 09:30:04 PM »
Thanks I'll try that.