pixel png image as a platform in godot(pixel-perfect)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DunnoBruno

I wanted to turn a 2d pixel png into a platform that a player/object could stand on. If you do know how or if possible, please do provide steps, as a beginner of godot and if it’s stupid, please let me know. I would be very grateful.

:bust_in_silhouette: Reply From: ramazan

Use “Staticbody2D”
look left (image)= Node name "Staticbody " “!” add “CollisionShape2D”

I did put static body to the 2d pixel png, but what i’m aiming for is like perfect-pixel collision.

enter image description here

I might as well edit this question to understand the context.

DunnoBruno | 2022-01-12 12:47

Imgur: The magic of the Internet

DunnoBruno | 2022-01-12 12:48

Add “CollisionShape2D” to “Staticbody2d”.
“CollisionShape2D” will be the child of “Staticbody2d”

ramazan | 2022-01-12 12:53

It works! Tysm :,DDDD

DunnoBruno | 2022-01-12 13:01

You are welcome

ramazan | 2022-01-12 13:05

look at here :
use Tillmap

ramazan | 2022-01-12 13:22