#Is there a way to change the visibility of tiles in a tile map? Godot 3.5
7 messages · Page 1 of 1 (latest)
Do you have a visual example? like a gif or preferably, a video of what's happening?
It's kinda hard to visualize what your issue is & how to make it "run better".
But if you mean to change their "visibility" by adjusting their transparency:
- Go to your TileSet.
- Go to Edit your TileSet & click on a specific Tile.
- in the Inspector fo to "Selected Tile".
- Adjust the Alpha in the "Modulate" section.
That would make your tile "transparent" or "invisible" but I don't know if that would help with performance..
so I saw this video and was wondering If I could do this for individual tiles instead on a scene.
Learn to Code from Zero, With Godot: https://gdquest.mavenseed.com/courses/learn-to-code-from-zero-with-godot
Godot Node Essentials (ultimate cookbook): https://gdquest.mavenseed.com/courses/godot-node-essentials
📚 THE LINKS
Cerbere game's detailed video: https://youtu.be/YYoLqAEpHmo
Open-source demo project: https://gdquest.github.io/godo...
my project is here If you want to check it out. It lags a bit depending on specific events. https://cheesecrusaders.peterio.xyz/
From what I understand of the video is that this "VisibilityNotifier2D" node acts as the parent for the "Scene" (in this case the level) that gets hidden if it's outside the player's view.
In theory how it could be done would be if you created individual scenes for each Tile with one of the Tiles (that you want this happening on) with the "VisibilityNotifier2D" node.
But not only would that be very tedious to do this for each & every Tile, I'm not so sure it would help your performance problem but have the opposite effect instead.
What I think you need for this to work is the "VisibilityNotifier" node & the necesseray script for it but because of my limited knowledge of Godot, I don't really know how to do it.
At the moment, I think your best bet is to either make smaller Scenes (Levels or "rooms") with the functionality that's described in the video.