DuckRun/scenes/Duck/skin.gd

6 lines
140 B
GDScript3
Raw Permalink Normal View History

extends Sprite2D
func change_to(custom_number:int):
texture = load("res://scenes/Duck/customs/{s}.png".format({"s":str(custom_number)}))