Problem with RigidBody2D/CollisionShape2D?

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

Hello again. Another day, another question :slight_smile:

So for my first time game project I’m working on (to familiarise myself with this Game Engine), I’ve ran into a problem with my player character.

I was planning on starting the programming for the player movement but I realised that the player character sprite didn’t have a rigidbody2D or any collision detection. So I quickly added that and set up a quick test.

However as you can see in the video, when I launch the game, my character bounces and then is suspended in mid-air. And I don’t know why.

When I created my tilemap quite a while ago, I did the collision stuff for that there and then. It was simple enough as they are all blocks, and I made sure I turned on ‘Use Kinematic’ in my level. So I’m confident it’s an issue with my player collision/rigidbody.

Sorry in advance about the bad framerate and slightly poor quality for the video, I recorded it using some free desktop recording software so it isn’t best, but should be enough for you to see what my issue is.

Link to the video: link removed

Thanks!

remove all other nodes except player see if it does anything weird, then clear the script.

Mohammad Hadi Aliakb | 2016-03-03 05:23

:bust_in_silhouette: Reply From: spicy

Just incase anyone was curious, I have solved my problem. I had to go into my tilemap settings and change the shape offset from 0, 0 to 10, 10. That seemed to have solved the problem.