i create all from this tutorial - https://www.youtube.com/watch?v=j1kh45_Rhq4&t=607s, but physics not working in level, player falls - https://i.imgur.com/oGnM79q.png
how to fix this?
Most likely you do not have the floor / player collision groups setup properly. Double check them in every area it’s mentioned such as the tilemap.
You can send me your project as is in PM as a zip and I’ll take a look.
In the tilesource you need to select “ground” and then “paint” the tiles you want to have that collision group. It’s a bit confusing at first.
i repaint all but nothing happened(
I ran into the same issue a little earlier. Your level collision object is static, good. I take it your player collision object is kinematic? If so, you’ll need to program the on_input(...)
function in your player.script
in the player.collection
to respond to message_id == hash("collision_response")
individually.
The confusion I had starting out a few days ago was precisely this: kinematic objects accept user input directly, but are not affected by Box2D physics directly. Either way, Box2D will find the collisions between the collision objects, but it won’t react to them automatically with a kinematic collision object type.
Hope this helps. Happy defolding.
I have a minimal example here: https://github.com/britzl/publicexamples/tree/master/examples/tilemap_collisions
Perhaps if you download and try it you can spot what you did wrong in your project?
sorry for stupid question… but where i can find code editor in this visual map editor? for writing code fix
What do you mean? I don’t understand the question.
where i can write this code? for fix my problem
If you followed the tutorial it seems like there should be a file named player.script among your assets. Double click it to bring up the code editor.