Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Rabagast on March 04, 2016, 07:36:00 AM

Title: Array Maker - Get Next, Reset
Post by: Rabagast on March 04, 2016, 07:36:00 AM
Hi!

Is it possible to reset Get Next, so it starts at index 0?

I use Array List Get Next to create an image which you need to memorize. Next time, it will create two images and then three and four and so on. But it needs to start at index 0 every time. Now it starts at index 0, and then index 1 and 2 and so on, so I need to reset it on every loop. Is this possible? I tried with Array List Reset Values, Array List Get, Array List Set, but it didn't work.
Title: Re: Array Maker - Get Next, Reset
Post by: mdotstrange on March 04, 2016, 09:54:03 AM
On "Array List Get next" there is a bool variable called "Reset"-  set it to true before the action runs and it will reset it
Title: Re: Array Maker - Get Next, Reset
Post by: Rabagast on March 04, 2016, 01:14:45 PM
Hi!
Thank you so much! I remember I got it to work some days ago, but I didnt remember how I did it until now. :)

Now I need to figure out another problem. I need to click on the images in the order they appear on the screed, but I will try a little bit harder before I ask for help. :)
Title: Re: Array Maker - Get Next, Reset
Post by: Rabagast on March 05, 2016, 06:46:29 AM
Hi!

I got another problem. I use Mouse Pick and use a Game Object Variable I stored earlier. Then I use Mouse Pick Event. And when I click on the image, then I use Set Tag and use the same Game Object Variable I use for Mouse Pick. It find the image on Set Tag, but it doesn't set the Tag. I don't know why.
Title: Re: Array Maker - Get Next, Reset
Post by: Rabagast on March 05, 2016, 08:07:53 AM
I know the problem. I need to use Game Object variable I use on Mouse Pick on Set Tag. The problem with this, is that the Tag will be set on the current image I clicked on, but I need to set the Tag on the next image. I have no idea how to do this.
Title: Re: Array Maker - Get Next, Reset
Post by: evilpikmin on May 24, 2017, 04:34:41 AM
On "Array List Get next" there is a bool variable called "Reset"-  set it to true before the action runs and it will reset it
Hi! Has this changed in a recent version? Im getting the same problem, but I cant see a variable for reset on 'Array Get Next'. Array List Get next doesnt seem to be in the action list. Any ideas anyone?
Title: Re: Array Maker - Get Next, Reset
Post by: Phuzz on May 24, 2017, 05:09:28 AM
On the ecosystem there is an Array Get Next 2 which has the reset bool :) And for Arraylist, you will need to download Arraymaker from the Ecosystem, and if you need the Ecosystem package, it is https://hutonggames.fogbugz.com/?W1181 (https://hutonggames.fogbugz.com/?W1181).
Title: Re: Array Maker - Get Next, Reset
Post by: evilpikmin on May 25, 2017, 05:46:35 AM
Awesome! Thanks for the information

Dave