mirror of
https://github.com/tonytins/dressupzack
synced 2025-05-06 05:44:48 -04:00
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.
10 lines
346 B
GDScript
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
|