make arrows follow player's palette :)

This commit is contained in:
Haze Weathers 2024-03-09 13:52:12 -05:00
parent f1ad9d5825
commit 7993b1d4e5
14 changed files with 94 additions and 13 deletions

View file

@ -21,6 +21,9 @@ onready var initial_sector: Vector2 = Game.current_sector
func _ready():
if target_group == "enemy_hitbox":
var palette = load("res://graphics/player/palettes/%s.tex" % Game.current_palette)
$Sprite.material.set_shader_param("palette", palette)
#Flip depending on direction
scale.x = direction