hello guys, i tried to change z-index but it doesn’t work. Here it is
The platform is a static body 2d, it will push other physics bodies out of it’s area, since the two are overlapping your player is forced out of the defined collision shape.
You could re-order the scene tree, right click the player and select “move down” to draw it above the platform, this will not fix the collision issue.
What do you want the static body to do?
hey there! i remember you, i want staticbody2d to be the platform player could stand on
and this also doesn’t work, i tried
Which part doesn’t work? Re-ordering the scene will work if you reset the z-index values, and the static body pushing other physics bodies is a fact of the engine, I take it by “stand on” you mean from a top-down perspective? In which case you do not need a static body at all.
so if i change it to tilemap for instance, will it work?
Probably, that is a wildly different node though. TileMapLayers can also have collision data that would push the player off-screen, but you would have to be very intentional about it.
of course
thank you, goodbye