Text hidhing behind sprite sheet

Hi,

I have a screen where I am showing some text at the bottom. There are few objects moving in the screen including sprite sheet. When an object overlaps my text, text:toFront() brings text over the object but when I do the same when a sprite sheet overlaps the text, my text is still behind the sprite. I am not able to find the solution anywhere. Please help.

create groups
one main group to hold everything
one for images
one for text
then insert images/sprites into image group
insert text into text group
insert images group into main group
and then text group into main group
this way the text group will always be on top and no need for toFront

Thanks for the reply jstrahan. Will try it!!!

views:1377 update:2011/10/26 9:29:31
corona forums © 2003-2011