Call Random Animations with an Array

You're viewing a single comment in a conversation. View all the comments
  • 2 Comments

  • Order by
  • This helped tremendously! I'm currently making a dialog system with JSON and arrays. Been trying to figure out how to call an animation or even a sfx with the array.

    • I'm very pleased that my tutorial helped you out!

      Looking back, there are some easier ways to go about this - namely by using the choose( ) action (something I didn't learn about until much later after writing this).

      Choose( ) works basically like this:

      [event] : action - choose (option 1, option 2, ... option x). So you can actually specify a specific number of options that are randomly selected from. In hindsight, I could have just told it to do choose(animation 1, animation 2, animation 3) and it would have been so much simpler. The Array wouldn't have been necessary.

      I hope it all works out for you!