-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving platform with tilemap does not working properly #35550
Comments
It's unclear to me what the issue is. What do you mean by "not working"? What is the current behaviour? What is the expected behaviour? If there are multiple issues, you should close this issue and create a separate issue for each problem, together with a minimal reproduction project clearly demonstrating that one problem. Also, you should upload images, example projects, etc. directly to Github instead of using links to external storage providers. |
If you want a body follows (without moving) properly a platform in 3.1, you need to check the "sync to physics" box. But like in KinematicBody3D, there is not "sync to physics" checkbox on Tilemap, so I tried different setups. If this is the Godot's proper way to deal with moving plateform, maybe the issue should be renamed "Add sync to physics checkbox to Tilemap/GridMap" [edit: it's a possible solution but the existing "use parent" should be enough.] |
That would make this a feature request and not a bug. Feature requests should be made here. |
You can probably use some StaticBody2D/KinematicBody2D with sync to physics, then put the TileMap as a child and turn on "use parent" for collisions. I'm afraid there isn't a similar workaround for GridMaps, however. |
I do not agree, that's a possible solution not a new feature. Furthermore, I forgot the existence of the "use parent" checkbox used in the setup n°4, this option should act like the parent (KinematicBody2D with sync to physics), but it doesn't. If I'm wrong, feel free to close the issue.
@bojidar-bg It's already tested in my setup n ° 4 The workaround I found is to actually not use the _physics_process function for kinematic bodies, but instead keep them in a list in the scene node, and "update" them in the right order. In case of a collision with the platform apply the platform velocity to the player. It's working but it's restrictive / heavy. |
This sounds like two different issues, one being a feature request |
@pwnorbitals I think it is not necessary to have a sync to physics after all, because there is already a "use parent" checkbox. |
**Godot version:**
OS/device including version:
3.1 & 3.2 - MAC/WIN
Issue description:
movingTilemap.zip
Similar to what happened with a KinematicBody2D on a platform before 3.1, there are issues when the platform has a Tilemap (as collisions):
screenshot
I tried different setup in the demo project, but nothing works.
Edit: My assumption is, it should work with "use parent" on the tilemap (but I'm not sure)
The text was updated successfully, but these errors were encountered: