#my camera2d isn't being used for some reason

1 messages · Page 1 of 1 (latest)

cursive hinge
#

i'm using this to have horizontal movement, was working fine but idk what's happening now, i have a and d to move the characterbody which in turns moves the camera, i have the character body's position clamped aswell

#

basically in the fore_ui canvas layer i'm adding all my ui elements which the player will interact with and the characters are in the back_stuff, haven't added any characters of rn

#

if there's a better way to do it, do share

astral hare
#

You don’t have to put your UI inside the player. A CanvasLayer will keep them anchored to the viewport.

#

You are also missing a CollisionBody inside the Character. If you do not need collision consider a different node

cursive hinge
#

this is a mock up, the camera moves horizontally, the white colorrect is where the ui would go

cursive hinge