Sign in to follow this  
legendaryious

Pixi Graphics always seem to layer over everything else

Recommended Posts

Hey :)

I drew some rects with Pixi graphics and I like to put sprites and text on top.
Eventhough the pictures and text get added after the graphics have been added to the scene, the rects seem to have highest layer.

I might wanna use pixi layers but I am not sure how I can assign a layer to a graphics rect. Can someone help me?

Edited by legendaryious

Share this post


Link to post
Share on other sites

the order is important
`addChild(rec,sprite,txt)` should work
of if not possible
`addChild(sprite,txt)`
then `addChildAt(rec,0);`

for pixi layer
it will be something like
`addChild(txt,sprite,rec)`
`txt.parentGroup = goup2`
`sprite.parentGroup = goup1`
`rec.parentGroup = goup0`

Edited by jonforum

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.