Jump to content

Bring sprite to top, permanently.


Recommended Posts

I know that we have the world#bringToTop(object) function already, however I'm trying to find a way to keep the sprite always ontop of everything else. 


My problem is that when multiple people log into my server, their sprites start to draw on-top of mine. Who's drawn ontop of who isn't really a problem until I can't see myself. 


Like I said I know I can use:




However, is there a way to keep it at the top without calling the above method in Update()?


It seems like it'd be more efficient if there was a way to call bringToTop everytime a new component was added, instead of constantly. 

Link to comment
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.

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.


  • Recently Browsing   0 members

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