...
This commit is contained in:
parent
0b86322e88
commit
ab873a6619
1 changed files with 9 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
Untested snippet from Perplexity
|
||||
```python
|
||||
var atlas = AtlasTexture.new()
|
||||
atlas.atlas = load("res://path_to_your_atlas.png")
|
||||
atlas.region = Rect2(128, 64, 64, 64) # Example region for a 64x64 tile
|
||||
$TextureRect.texture = atlas
|
||||
|
||||
```
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue