How to stop moving

Godot Version

4.2

Question

so i have a platform people can move and this platform is solid all around (no pass through*)
problem is that my players can use this platform to push themselves through solid tilemaps

is there something I can do to stop this?

1 Like

Is it mandatory for the platform to go so close to the wall? Making tge platform bot go as far would not solve the issue, but avoid it.

it a platformer were this platform following your mouse is the gimick.

so yes platform will go near walls (trying to make it not go inside walls rn but thats a seperate thing)

i was wondering if there is a way to make the tilemap collsion stronger then the platforms
(platform is pushing through tilemap but i want tilemap to push through platform)

I haven’t tried it myself, but changing the value of collision_priority should fix the issue. I don’t see a way to change it for a TileMap, but you could try using a lower value for the moving platform.

i gave tilemap a value of 1 and platform a value of -1 and it didnt work

thanks for the idea though

I just tried it myself, and it works just fine if collision_priority is something like 0.01.
If you set it to -1, you should have gotten an error message, that says “set_collision_priority: Priority must be greater than 0.

1 Like

omg

i was useing the wrong priority thing.

(was useing the one under process instead of collision)
ty