#Player Charatcer Not Moving Even When Sprite Changes

1 messages · Page 1 of 1 (latest)

nova compass
#

First time using Godot and I'm following this video tutorial https://www.youtube.com/watch?v=pBoXqW4RykE&list=PL3cGrGHvkwn0zoGLoGorwvGj6dHCjLaGd&index=1
Made it to the end and even though the player sprite responds to inputs, it only stands in place. What I mean is the sprite updates based on input (facing down, up, left, right) but doesn't actually move from the same spot. I think I messed up when setting the speed somehow? Or something may be indented under the wrong thing...? Any help is appreciated, and feel free to ping me!

In this series I'm going to be going over everything you need to know in Godot 4 to create your own Godot games so after you can go off and make Godot games on your own. I know you will learn so much from this series and I'm very exited to teach it. In this episode we are going to keep it simple sense it is only episode 1 and create player movem...

▶ Play video
calm edge
#

You could try placing the play animation function all the way to the last line of your movement parts. So after setting the velocity you can call that function.

calm edge
nova compass
#

…camera?

nova compass
#

i don’t remember seeing that in the video but i may have missed it

calm edge
calm edge
#

But can you show me some footage of how it looks for you?

nova compass
#

on closer inspection it isn't using the full animation cycle, just the first frame (there should be 6)

nova compass
calm edge
calm edge
nova compass
nova compass
#

everything i made should be in the screenshots

calm edge
#

Can you show me a video of what is happening

#

Like a footage of when you run it

nova compass
#

like this?

calm edge
#

Could you do it as a video. I can’t open this file

nova compass
#

oh mb

#

one sec

nova compass
#

turns out up and down weren't working either

#

but yeah the sprite just flips left and right

calm edge
#

How about you put all your player movement code inside the process function rather than calling that function

nova compass
#

?

dreamy oar
#

its in your else statement

nova compass
#

ohh

#

I CAN MOVE NOW

#

it's just the sprite that's still a bit off

#

but i can (probably) figure that one out

#

it's crazy how one indent can mess with everything...