How do i make the camera move?

Heyo! Right now I’m trying ot make a stacking game where you stack blocks, but i can’t get the camera to move up when the red blocks get too high. I’ve tried changing the camera’s Z position (since it’s a 3D game) but that doens’t seem to do anything at all, no matter what number i set or add to it. below it my current code? can you please help me?

Hi madfroggy, I don’t know why it’s not working for you but I would try setting a camera z position at the beginning of the scene to see if that works.

Also, there is a when tween finished condition that you can use instead of wait x seconds. Also, it’s okay to just have all the beginning of scene events in one beginning of scene event.

Screen Recording 2026-05-26 at 2.08.43 pm
thanks for your other advice, I’ve changed the tweening condition kinda and also the beginning event but setting the camera z position at the beginning didn’t seem to change anything. idk what to do

You could use this action to set it to variable or even directly change cam pos on Z below it with some offset

In my game, I set the camera’s position to the “CameraObject”'s position every frame.


Then, when the blocks rise, I can tween the CameraObject’s position :smile:

(P.S: I made a 3D Stack GDevelop template that you might want to check out!)

Hi again, it’s really hard to look at events in a gif and it was blurry too.

Here’s what I have in one of my projects and if I change the value then the camera height changes in the preview. I think that before optimising things with variables, it would be good to find out why your camera z position event isn’t working. Do you position it anywhere else in events not shown in your first screenshot?