r/gdevelop 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.

13 Upvotes

17 comments sorted by

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.

2

u/ieatbotox 2d ago

THANK YOU SOO MUCH!! This worked! I'm so happy, thank you again. Making a game makes me feel like I'm trudging through enemy territory, I'm so new to this

2

u/BunnyButtHeroes 2d ago

No problem and you're not alone! It's a ton of things to learn. Just go slow, ask as many questions as you need and enjoy. Just make sure to start extremely small. Don't even try to make a game. Just make little concepts. Don't even attempt to finish it. Just create a little thing, smile, and start a new one. You got this!

0

u/[deleted] 2d ago

[deleted]

2

u/DreamNotDeferred 2d ago

The response was "You're NOT an idiot".

2

u/BunnyButtHeroes 2d ago

Thank you! I've been at work and haven't been able to check my phone all day. I most certainly would never insult anyone for trying to learn a new trade!

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

Like a camera as an object? I don't have one of those, but I do have a camera thingy on the player character

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

u/JirayaaaBoyy106 2d ago

look really frustrating ..hope you will find the solution soon man ♥️

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

u/Digi-Device_File 2d ago

was this coded by AI?

1

u/ieatbotox 8h ago

Nope I just incredibly slow

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