https://i.ytimg.com/vi/BWBD3i00AfM/hqdefault.jpg
Learn to implement a top-down character’s movement, first in 4 and then in 8 directions!
The Kickstarter: https://kck.st/2q8BEGb
—-
New tutorial every day until June 22! 09/30
The playlist: https://www.youtube.com/playlist?list=PLhqJJNjsQ7KEr_YlibZ3SBuzfw9xwGduK
The sources on Github: https://github.com/GDquest/Godot-30-days-tutorial-challenge-2017
Subscribe to the channel now and become a member of the community! https://www.youtube.com/c/Gdquest?sub_confirmation=1
Follow GDquest on:
Twitter: https://twitter.com/NathanGDquest
Facebook: https://facebook.com/gdquest
Google Plus: http://bit.ly/GDquest-Google-Plus
source
10 responses to “Simple Top-Down character movement in Godot: Grid-based movement 1/4”
What does that yellow pass do At The Bottom your functions?
These videos are the best.
Why do you use the delta for calculate the velocity?
velocity = speed * direction.normalized() * delta
if you do that you have magnitude*direction* time , that mean (m/s)*s that give you meters, but you need m/s. Can you explain this please 😀
delta is processor time right?
Exactly what I need!
Calling Input.is_action_pressed twice for each movement key seems like a really inelegant way of doing things. It might not be a big deal in a small bit of code like this, but these sorts of bad habits will create headaches down the road.
i'm not moving at all i have been trying to debug this got any hints also the player file on git hub is mostly empty don't know if its supposed to be or not anyway thanks for the awesome videos!
4:25 Is there in Godot something like switch-case? Or there is a reason why you using elseif?
it says: "Parser Error: Identifier not found: velocity" what can I do?
I'd love to buy Craftman's Bundle on kickstart, but I'm from Brazil, so Euro is so expensive to convert to Real (Brazil's
National currency). =/
How!! I love your code's patern! Great job! =D
hola master hay alguna posibilidad de que ponga subtitulos en español?