Daniel's Notes

Home

❯

Clippings

❯

Point & click 2D grid movement in Godot 4 using AStarGrid2D

Point & click 2D grid movement in Godot 4 using AStarGrid2D

Feb 05, 20251 min read

  • clippings
  • video

Description

Assets: https://www.kenney.nl/assets/monochrome-rpg

In this tutorial we’ll take a look at how to move a 2D character to a position clicked by the cursor whilst using AStarGrid2D to also dodge obstacles.

My Notes

0:00 - 0:24 - Intro

0:25 - 2:12 - Tile map setup

2:13 - 10:47 - Point & click movement

10:48 - 16:52 - Disabling cells

16:53 - 21:02 - Lock player to grid

21:03 - 24:32 - Drawing path

Transcript


Graph View

  • Description
  • My Notes
  • 0:00 - 0:24 - Intro
  • 0:25 - 2:12 - Tile map setup
  • 2:13 - 10:47 - Point & click movement
  • 10:48 - 16:52 - Disabling cells
  • 16:53 - 21:02 - Lock player to grid
  • 21:03 - 24:32 - Drawing path
  • Transcript

Backlinks

  • 2D Movement in Godot 4 using TileMap

Created with Quartz v4.5.0 © 2025

  • GitHub
  • Discord Community