1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-05-06 05:44:48 -04:00
dressupzack/scripts/characterBase.gd
Anthony Foxclaw 721e2ab858 WIP decoupling clothing buttons
Couldn't think of a better title. Anyway, the current system is repeitive and redundent. While it works, it's not by means ideal. Because you have to manually write in a new condiation for every new clothing added. What makes it redundant is the fact that every clothing functions exactly the same. The only difference is in the layers it uses.
2020-06-27 11:20:12 -04:00

10 lines
346 B
GDScript

# Anthony Wilcox licenses this file to you under the MPL license.
# See the LICENSE file in the project root for more information.
extends Node2D
onready var character = preload("res://resources/character.tres")
onready var accessory = $Accessory
func _process(delta):
if character.accessory != null:
accessory.texture = character.accessory