fix labels that do not match program style

This commit is contained in:
Persephone Bubblegum-Holiday 2025-08-14 15:18:48 -07:00
parent 5f157f386f
commit 3778dfb3f9
16 changed files with 56 additions and 43 deletions

View file

@ -6,6 +6,9 @@ var blend_tree : AnimationNodeBlendTree
var movement_states : Dictionary
@export var inSuffix: String = " Up"
@export var outSuffix: String = " Down"
func _ready():
animation_player = $AnimationPlayer
@ -85,12 +88,12 @@ func _physics_process(delta: float) -> void:
animation_tree.set(anim_path, state[1])
func _movement_in(movement: String, rate):
if (movement.ends_with(" Up")):
movement_states[movement.trim_suffix(" Up")][0] = true
movement_states[movement.trim_suffix(" Up")][2] = rate
elif (movement.ends_with(" Down")):
movement_states[movement.trim_suffix(" Down")][0] = false
movement_states[movement.trim_suffix(" Down")][3] = rate
if (movement.ends_with(inSuffix)):
movement_states[movement.trim_suffix(inSuffix)][0] = true
movement_states[movement.trim_suffix(inSuffix)][2] = rate
elif (movement.ends_with(outSuffix)):
movement_states[movement.trim_suffix(outSuffix)][0] = false
movement_states[movement.trim_suffix(outSuffix)][3] = rate
else:
movement_states[movement][0] = true
movement_states[movement][2] = rate