Projectiles+

This commit is contained in:
dingo
2026-01-18 20:45:48 -05:00
parent 32fb57fa75
commit 718a8ecb3b
14 changed files with 455 additions and 19 deletions
+4 -4
View File
@@ -252,7 +252,7 @@ func _build_from_new_format():
_animated_sprite.position = Vector2.ZERO
_using_fallback = false
print("[MobVisual] NEW FORMAT - Built sprite with animations: %s" % [sprite_frames.get_animation_names()])
#print("[MobVisual] NEW FORMAT - Built sprite with animations: %s" % [sprite_frames.get_animation_names()])
# Hide fallback
if fallback_sprite:
@@ -441,7 +441,7 @@ func _play_animation(state: String, direction: String):
# Only log and play if animation changed
if anim_name != _last_animation:
print("[MobVisual] Playing animation: %s (state=%s, dir=%s)" % [anim_name, state, direction])
#print("[MobVisual] Playing animation: %s (state=%s, dir=%s)" % [anim_name, state, direction])
_last_animation = anim_name
_animated_sprite.play(anim_name)
@@ -455,8 +455,8 @@ func _play_animation(state: String, direction: String):
return
# No animation found
print("[MobVisual] No animation found for state=%s, dir=%s. Tried: %s" % [state, direction, names_to_try])
print("[MobVisual] Available animations: %s" % [frames.get_animation_names()])
#print("[MobVisual] No animation found for state=%s, dir=%s. Tried: %s" % [state, direction, names_to_try])
#print("[MobVisual] Available animations: %s" % [frames.get_animation_names()])
func _alt_direction(dir: String) -> String:
match dir: