Jump to content

Always on top


Raiper34
 Share

Recommended Posts

Hi, 

 

Can anybody tell me, how to show some sprites always on top? I need it for my ingame menu and fadeEffect. Yes I can use groupd (I have not looked at this yet) but it is a bit complicate to me, I need rewrite lot of code I think... so I tried to simple bringToTop in update function. Yes it seems to work, but i see some sort of blick (flash) effect, because when I show new sprite, it is some miliseconds on top and it is visible for player. Can anybody suggest me best solution for this? Can anybody affect bringToTop? 

 

Thanks.

Link to comment
Share on other sites

You can use groups and put everything into a group, precising the z-index. But I think that by default everything is put into the world group, so you could just fix the z-index of the particular sprite you want to put on top of everything.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...