How to make GUI

What I need to know, is how to make GUI follow panning of camera

You can use this code on your player

object.x = this.x + or -
object.y = this.y - or +;

but the problem is i want a cutscene with screen panning which goes off a bit, and i still want the gui to follow the cutscene

If your using the vcam asset then you can just move the GUI clips when you move the vcam. Or you have them get the original offset and set their positions to the vcam’s position plus the offset.

If your using project.project.pan then you just set their position according to the pan position.

i ended up doing this by messing with this.x = player.x - (project.width/2 - this.offsetX) and stuff, thanks for helping

1 Like