2D character in a maze/arena

I am trying my hand at recreating the classic 90’s Unix game XTank.

So far, I have tank I can drive around with the arrow keys, and an arena made up of tiles. The tiles have the collision areas defined, now I just need the tank to actually stop when it hits something.

Can anyone recommend a 2D tutorial that adresses how to have a object/vehicle moving around in a maze?

1 Like

I have found these helpful in the past! This sounds like a cool project. Good luck!

  1. Official Godot 4 Docs: CharacterBody2D
    Godot Docs - CharacterBody2D

  2. HeartBeast’s Top-Down Movement Tutorial (Godot 4)
    YouTube: Godot 4 Top Down Movement Tutorial — Search “Heartbeast Godot 4 top down movement”

  3. GameDevMo’s Tilemap and Collision in Godot 4
    YouTube: Godot 4 TileMap and Collision Tutorial

2 Likes