Simple Top-Down character movement in Godot: Grid-based movement 1/4


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”

  1. 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?

  2. 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.

  3. 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!

Leave a Reply