playMaker

Author Topic: Array Maker - Get Next, Reset  (Read 3883 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Array Maker - Get Next, Reset
« 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.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Array Maker - Get Next, Reset
« Reply #1 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
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Array Maker - Get Next, Reset
« Reply #2 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. :)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Array Maker - Get Next, Reset
« Reply #3 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.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Array Maker - Get Next, Reset
« Reply #4 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.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

evilpikmin

  • Playmaker Newbie
  • *
  • Posts: 16
Re: Array Maker - Get Next, Reset
« Reply #5 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?

Phuzz

  • Full Member
  • ***
  • Posts: 101
    • Bzilla Games
Re: Array Maker - Get Next, Reset
« Reply #6 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.
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

evilpikmin

  • Playmaker Newbie
  • *
  • Posts: 16
Re: Array Maker - Get Next, Reset
« Reply #7 on: May 25, 2017, 05:46:35 AM »
Awesome! Thanks for the information

Dave