#Noob alert! - Collisions (Top down)

3 messages · Page 1 of 1 (latest)

coarse gull
#

Greetings!
I'm new with Godot, I literally finished the 2D tutorial from the documentation.
I'm now trying to create a simple top down shooter with tilemaps. But right at the begining I got stuck at collisions.
I've created my player with a simple player movement script and then added a free tilemap.
I made sure my player has a colisionShape2D and also creted a physics layer for the tilemap. Then I paited the physics layer in the tiles and I was expecting colisions but it is now working. Anyone could help?

restive wraith
# coarse gull Greetings! I'm new with Godot, I literally finished the 2D tutorial from the doc...

Welcome 👋

Your player is an Area node, which is used for detection but it isn't solid so it can't collide with anything.
You want it to be a CharacterBody2d

Here are some good tips on how to use it
https://docs.godotengine.org/en/stable/tutorials/physics/using_character_body_2d.html

#

I would also recommend picking a tutorial series on YouTube that is creating a game over multiple parts with a genre close to yours to see how to use godot in practice.

There are so many basics to learn and if you just jump into your first project after doing the official tutorial you are gonna get stuck constantly