Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Absence of scene tree hierarchy — Gideros Forum

Absence of scene tree hierarchy

arundhatijarundhatij Member
edited March 2012 in General questions
Is it possible to create sprites which have the same level of hierarchy within a scene?
I'm trying to create a "Jewels" like game in which similar kind of objects can be removed when matched. How can I implement this if each new object has a different hierarchy?

Comments

  • evsevs Member
    Hello,

    There's a Hierarchy example included with Gideros

    It's basically this...
    group1 = Sprite.new()
    group2 = Sprite.new()
     
    group1:addChild(Bitmap.new(Texture.new("group-1.png")))
    group2:addChild(Bitmap.new(Texture.new("group-2.png")))
     
    stage:addChild(group1)
    stage:addChild(group2)
    Cheers

    evs
Sign In or Register to comment.