forked from team-sg/hero-mark-2
made script to recolor graphics representing sg (fixes #208)
This commit is contained in:
parent
8b1ccd366f
commit
b9aec6ac38
2 changed files with 9 additions and 2 deletions
5
scripts/sg_palette.gd
Normal file
5
scripts/sg_palette.gd
Normal file
|
@ -0,0 +1,5 @@
|
|||
extends Node2D
|
||||
|
||||
func _ready():
|
||||
var palette = load("res://graphics/player/palettes/%s.png" % Game.current_palette)
|
||||
material.set_shader_param("palette", palette)
|
Loading…
Add table
Add a link
Reference in a new issue