I’m struggling with display-groups.
Basically i want a background in the “back”, an animated sprite from a sprite sheet in the “middle” and buttons in the “front”
See image below:
http://imgur.com/36Cbv
Currently i have 3 functions with 3 different display-groups within, this only shows the background.
I don’t want all the code in one function because that would be really messy to work with.
Is it possible to use the same display-group in 3 different functions and give the objects hierarchy order using
[lua]assert( (group[1] == button) and (group[2] == sprite) and (group[3] == background) )[/lua]
Any help is appreciated
[import]uid: 129637 topic_id: 22893 reply_id: 322893[/import]