0 votes

Hi, I'm new to Godot and all I want is to change the color of a tileset.

the code is.

TileMap.modulate = Color( 1, 1, 1)

It clearly doesn't work. so what can I do??

Godot version latest
in Engine by (17 points)

1 Answer

0 votes

Modulating the tilemap will modulate all of the tiles. If that's not what you want, you need to access the tileset.


tile_map.tile_set.tile_set_modulate(id, color)

where id is the id of the tile you want to modulate and color is the color.

by (8,526 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.