I have some text that I always need to display (like a HUD). When a sprite goes over top of it though, the sprite covers up the text. How do I always make the text on the very top layer?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why you don’t use HUD class? You can attach it to your camera and it will always be over all your entities attached in your regular scene. In order to achieve that you need to create an instance of HUD, attache the sprite you need to be on top of everything and use the method setHUD from the Camera.
Edit: