• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML Making Instance follow camera?

Amon

Member
I have a power meter that is created as a series of boxes. This power meter sets the speed of my character. How do I make it move with the camera or place it in the GUI layer so that it follows the camera?
 

rIKmAN

Member
I have a power meter that is created as a series of boxes. This power meter sets the speed of my character. How do I make it move with the camera or place it in the GUI layer so that it follows the camera?
If you draw it in the GUI Layer it won't move when the camera moves, it will always be in screen space where 0,0 is top left and view_width, view_height is the bottom right and will stay in position no matter how the camera / view is moved within the room.
 
Top