Maintain Position of the Score Despite Moving Camera

How can i get a text object (that displays the user’s score) to stay at the top of the screen no matter where the camera is? thanks

Make a new layer (call it something like GUI), put the object on that layer, make sure your camera events only target the base layer, and not the GUI layer.

The built in Platformer example has this set up if you want to see an example.

1 Like