Jump to content

How to iterate over all the elements of the game?


toto88x
 Share

Recommended Posts

Hello,

 

Is there a simple way to iterate over all the elements of the game in my state (sprites, groups, labels)?

Something like: game.all.forEachAlive(function(e){...}, this)?

 

Bonus question: I have trouble making the yoyo() function work with a tween. Can someone show me a working example?

 

Thanks! 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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