I noticed that all the examples (Fading Stars, Jumping Balls, Bird Animation) create images on the screen, but never removeChild them. Even Bird Animation, which seems to continuously create birds, only repurposes the same 4).
So I'm having a hard time trying to figure out how to create a class that can create and manipulate a group of images.
For Fading Stars, the class creates an individual image and the group logic is in main. Any way to create the 5 stars in a class? Then there could be a function Fade:update that could go through all the stars on the screen and change variables, setalpha, removeChild, etc..
It seems kind of awkward to create a class just to put an image on the screen, but have all the other logic in the main.lua file.
Thanks in advance from this newbie who is still struggling with events, timers an classes