Is there a way to change specific tiles in a tilemap when the game is running when an event happens like when a signal is triggered?
Changing individual tiles during runtime
09kingarthur In godot 3.5 look at the set_cellv() function and it's input parameters. Setting the first parameter to -1 clears the tile. The integer relates to the tiles available in the tilemap in the order they are shown in the inspector when painting tiles in the editor.
Erich_L I'm using Godot 4.0, would the process be any different?
TwistedTwigleg added the Godot 4.X tag .
- Edited
If you right click your TileMap node you can also just hit Open Documentation. You'll often find a function that can do something that's close to what you want.