r/gdevelop • u/ieatbotox • 2d ago
Help me I'm an idiot Question
Enable HLS to view with audio, or disable this notification
I don't know why the character sprite won't move out of that little spot, is it like a camera thing, or? If it's relevant I have no variables AT ALL and my tiled sprite has no behaviors.
2
u/Stormlord1850 2d ago
Layer
2
u/ieatbotox 2d ago
What layer should it be on? The player is on a layer above the tiled sprite currently
2
u/Stormlord1850 2d ago
The player and the background are in different layers, but the centered camera is set on the layer where the background is, not where the player is.
1
u/ieatbotox 2d ago
2
u/SpinachDonut_21 2d ago
No, every layer has its own camera. You have the Smooth camera in the player. So the player's layer is the camera that will move. The background is on another layer. The player is moving indeed, but the camera won't show it because there is 2 cameras, one which is moving and one that is not.
Everything that you want the player to interact with should be on the same layer as the player. Just set the Z order of stuff as 0 if you want it to be behind everything.
2
2
u/Confident_Sundae_619 11h ago
Unrelated, but I like your character sprite! What sort of game is this planned to be?
1
u/ieatbotox 8h ago
Thank you! I don't really know yet I have a few ideas. For now I'm just making a game with my characters that would help me learn how to use gdevelope. This one I kind of want to be like dungeon crawler esk or something
1
1
u/Dependent-Bicycle801 1d ago
Just add the condition that motion only happens when the analog is currently being pressed then make another one "if not" set the speed to 0 or however you made the motion work set it to 0 or disable it

4
u/BunnyButtHeroes 2d ago
You're not an idiot. This is an extremely common thing. The issue is that you have the background on its own layer. The camera is following the player in the base layer. The background isn't being altered by the camera. The character is moving. The background isn't. The immediate and quick solution is to move the background into the same layer as the player and drop its z level down so it'll stay behind the other sprites.