playMaker

Author Topic: How to make an ArrayList of Animation/Events?  (Read 1755 times)

jvt619

  • Playmaker Newbie
  • *
  • Posts: 2
How to make an ArrayList of Animation/Events?
« 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 ?
« Last Edit: November 27, 2013, 04:38:16 AM by jvt619 »

Yanifska

  • Full Member
  • ***
  • Posts: 163
    • My Portfolio
Re: How to make an ArrayList of Animation/Events?
« Reply #1 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.
Visit my portfolio: http://www.yanivcahoua.com/

jvt619

  • Playmaker Newbie
  • *
  • Posts: 2
Re: How to make an ArrayList of Animation/Events?
« Reply #2 on: November 27, 2013, 08:28:17 PM »
how do I increment and decrement in PlayMaker Arraylist addon?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to make an ArrayList of Animation/Events?
« Reply #3 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