Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jvt619 on November 27, 2013, 12:37:05 AM

Title: How to make an ArrayList of Animation/Events?
Post by: jvt619 on November 27, 2013, 12:37:05 AM
How to make an Array Animation/Event? Example if I click "Attack1" Button and "Attack2" Button, these attack animations/events will be save in an arraylist then when I click the "Do This Action" Button It will perform what is inside in the arraylist. Is this achievable ?
Title: Re: How to make an ArrayList of Animation/Events?
Post by: Yanifska on November 27, 2013, 04:05:58 PM
Maybe you can store a string containing the name of the animation / event in the array each time you click a button.
Then the do list action will go over each item in the list and will check the string.
I am not sure it is the most  optimized solution though.
Title: Re: How to make an ArrayList of Animation/Events?
Post by: jvt619 on November 27, 2013, 08:28:17 PM
how do I increment and decrement in PlayMaker Arraylist addon?
Title: Re: How to make an ArrayList of Animation/Events?
Post by: jeanfabre on November 28, 2013, 01:37:36 AM
Hi,

 You simply use "ArrayList Add" and "ArrayList Remove at" to add new entries or delete entries.

 Is that what you are after?

bye,

 Jean