Skip to content
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

Player isn't colliding with scene tiles when they aren't visible. #85625

Closed
dragon3025 opened this issue Dec 1, 2023 · 1 comment · Fixed by #85753
Closed

Player isn't colliding with scene tiles when they aren't visible. #85625

dragon3025 opened this issue Dec 1, 2023 · 1 comment · Fixed by #85753

Comments

@dragon3025
Copy link

dragon3025 commented Dec 1, 2023

Godot version

v4.2.stable.official [46dc277]

System information

Godot v4.2.stable - Windows 10.0.19045 - Vulkan (Forward+) - integrated Intel(R) HD Graphics 630 (Intel Corporation; 31.0.101.2111) - Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz (4 Threads)

Issue description

I have a tileset that disables its visibility during it's _ready() function. The tileset is made up of scene tiles. I didn't have a problem with this until recently I discovered my player goes right through the tiles unless they're visible. This didn't happen before, it could be something to do with the 4.2 update.

Steps to reproduce

In my minimal reproduction project I removed the script that disables the tileset's visibility.

  • Run the game with the tileset visible and use wasd keys to move downward. The tileset should block the player (it's using move_and_slide()).
  • Run the game with the tileset non-visible and use wasd keys to move downward. The tileset isn't block the player.

Minimal reproduction project

Bug Demo.zip

@kleonc
Copy link
Member

kleonc commented Dec 2, 2023

Seems like a variation of #83499 but for scene tiles. cc @groud

Tested in v4.1.3.stable.official [f06b6836a] and both atlas/scene tiles have collision in there when hidden, hence that's a regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants