Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
Simple removeChild examples out there? - Gideros Forum

Simple removeChild examples out there?

GreywineGreywine Member
edited August 2015 in Bugs and issues
Hi,

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

Comments

Sign In or Register to comment.