Jump to content

Tiled and Create From Objects


pdiddles03
 Share

Recommended Posts

Working on a plat-former and I am defining enemy locations and createFromObjects to bring them into my game.  I have more then one kind of enemy, but don't want to create a bunch of separate groups for enemies because that can cause the code to look a bit messy.  

I know you can put multiple groups into a group,  but my question is, how do i do this and animate each group of enemies differently? Lets say i have 2 enemies, bats and slime. Slime is bouncing up and down as they move, and bats are flapping their wings.

Link to comment
Share on other sites

I don't think you need separate groups unless you really need to manage them differently.

You can use one group and just add different animations (probably in create) and then play them differently (probably in update).

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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