Switch between cameras

i have 4 cameras that follow different objects in the scene.
Before, each camera was attribuate to a letter.
But now, i want to use juste a key. Each time i press a key, it will change the camera.
i thought about using the scene variable but nothing happens

can someone help me please ?
i came up with this :slight_smile:

the last event i wanted to add is when the scene variable equal 5, i want it to restart to 0.



1 Like

topias132 has it right. As with all things in the GDevelop (and basically all engines), everything is case sensitive. Id_Cam is different from Id_cam is different from id_cam.

1 Like

A Big thanks to both of you.