make arrows follow player's palette :)
This commit is contained in:
parent
f1ad9d5825
commit
7993b1d4e5
14 changed files with 94 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue