0 votes

I've been researching the following thing for a few days, but with absolutely no success. I don't even know if it's possible, but I am hoping somebody might have an idea on how to approach this.
I have a 64x64 TileMap with my (2D platformer) tiles for designing the map; I want a 2nd TileMap containing only decorative rocks to place inside the ground, 64x64 as well. What I aim for is to place all rocks around the map and in the 2nd TileMap's script to manipulate the texture of EACH grid cell containing a rock to modify its offset and rotation in order to simulate a "random" placement.
I know I can grab all used cells with getusedcells() but this returns an Array of Vector2 with the X and Y of each cell in the grid. Is it possible to access the texture in every cell and individually modify them? I don't want to modify the texture inside the TileSet because it will apply that one change to all tiles using that one texture.

I don't know if this is doable, whether in Godot 3.3 (which I am using), Godot 4 or even at all. Thanks for your time and looking forward to any possible suggestions!

Godot version 3.3
in Engine by (12 points)

Please log in or register to answer this question.

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.