Jump to content

How does group.addMultiple work?


Le Twitch
 Share

Recommended Posts

Hi,

It expects an array of children objects to be passed to it, it's exactly like doing group.add multiple times, it's just a for loop internally.

So you use it like this :

group.addMultiple([sprite1,sprite2,etc])

 

Ahh okay. Thanks!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...