Hello, I need help saving a problem …
it goes like this, I have a table of objects , now the objects will be erased if any of this two conditions happen:
1.Touch the object
2. A certain of time has passed
The idea is to touch all the objects in the screen in a certain time limit. when the time limit is reached all the objects will be erased and you wont get any points.
but I have problems doing this because if i don’t manage to get all the objects in that certain of time , sometimes some objects wont disappear. My guess is because I am managing the objects with a table when i touch an object the table number of objects between it decreases by one which changes the index of the objects that are “above” the object i just pressed.
Also a problem with sprites, what is the best way to make a sprite finish its animation before getting deleted?
cause if i do something like
sprite:play()
sprite:removeSelf()
It would instantly disappear. [import]uid: 127101 topic_id: 28619 reply_id: 328619[/import]