-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
One-way collisions in tilemap can't be modified after the game has been started once #53801
Comments
Please provide a minimal reproduction project to help contributors investigate your issue. |
Hi @pouleyKetchoupp , I was preparing a sample project and I have discovered that in the new project it works as expected. I have tried to investigate more to try to find the issue and I found that if I check the one way collision property, save, close the editor, come back; then the property is disabled again. Also, I have found the following error in the output window that might be related:
|
I can't reproduce the issue or the error with a new project in 3.3.4. Could you please provide us with the project you're using where you can reproduce the issue as you just described, and the exact steps based on this project? |
@pouleyKetchoupp I wish I could share the problematic project but it contains proprietary assets that I can't distribute. I've found a way to circumvent the error, it seems like the problem is that the property is not being correctly saved, but if I perform the following steps the majority of the times I could set them as one-way collisions:
Most of the times that I did the above I could set them as one-way collisions. There were also times where I had to restart the editor. |
@svprdga: Can you strip the affected project down (i.e. remove the proprietary assets entirely or replace them with some placeholders, i.e. a generic cube instead of a model, etc.) to create a MRP? |
Okay...I think I've got it: https://github.com/svprdga/godot-issue-53801 Instructions:
From this point, you can try:
|
@svprdga Thanks for the test project, I can reproduce the issue in 3.3.4, and also 3.4 RC1. It's not just one-way collision, if I change anything in the tile set after I started the game once, like the collision shape, it's not reflected after saving, until I restart the editor. It does work normally though if I just load the project, make the change and start the game. I've updated the PR description with a zip file of your project for convenience. |
CC @groud just in case you have an idea what could be the problem, since you've worked on refactoring tilemaps. I haven't investigated or tested in 4.0 so far. |
The issue seems to be that the tileset has to be saved manually. After toggling
Reproduced with the |
Godot version
3.3.4 stable faf3f88
System information
Linux Mint, GLES3/GLES2, GeForce GTX 1070/PCIe/SSE2
Issue description
It seems like one-way collisions for single tiles in a Tilemap does not work. A kinematic body 2D can't go through from any direction.
Steps to reproduce
selected_collision_one_way
propertyMinimal reproduction project
godot-issue-53801-master.zip
The text was updated successfully, but these errors were encountered: