|Topic was automatically imported from the old Question2Answer platform.
|Published before Godot 3 was released.
Ok so i want to make a platformer game. I made a KinematicBody2D which can move horizontaly. I added to it a collision shape(rectangle) and a sprite.
I made a new scene where i put every tile and assigned to it a RigidBody2D and,
as a child of RigidBody2D, a CollisionPolygon2D modified by me
I did this to every tile in the game.
Converted that scene into a tileset, added to my game a tilemap.
I made the level but i have a major problem. When moving, my character just passes through walls and ground.
Because of that, i added to the world an Area2D node, assigned some CollisionShape2D’s(rectangles) for the ground and the walls. Now the player stops only when colliding to the ground, but passes through walls. Checked if the depth’s are the same and they are.
Strange problem, never happened to me.
(Sorry for my english)