pdiddles03 Posted May 2, 2017 Share Posted May 2, 2017 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 More sharing options...
samme Posted May 2, 2017 Share Posted May 2, 2017 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 More sharing options...
Recommended Posts