Weird behaviour on tileset and rectangle collision shape

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Nighttraveler
:warning: Old Version Published before Godot 3 was released.

Hi community
I have this behaviour: when i walk on tile ground sometimes the character stop’s while i’m still pressing the move button the i walk left and right again and this “fix”

[EDIT]
Here is a pic of the configs and the option visible collision shape on

What is the node type of your character (KinematicBody2D/RigidBody2D)? How did you setup your tiles? This is the normal structure:
Sprite (tile 1)
└── StaticBody2D
└── CollisionShape2D
It would also help to see the code that moves your character.

neikeq | 2016-02-23 21:46

i have the tree struc you describe there all son of a node2d, i edit the question with a pic( my english sucks )

Nighttraveler | 2016-02-24 03:15

:bust_in_silhouette: Reply From: Hinsbart

I also often had this problem when working with tilesets, CollisionShapes can be tricky to line up. Make sure you have pixel snap enabled.

But for me, Tiles work better with CollisionPolygon2Ds.

Hi , u say CollisionPolygon2D on tiles or in the character?

Nighttraveler | 2016-02-25 03:01