Replies: 2 comments 25 replies
-
In HUD.TSCN, alongside the icon, Make an animationPlayer for it. Then, in the HUD script, making an @onready var iconAnim and make it reference the animaion player for the icon, then, in the player script, in func get_ring(), after the line "ringChannel = int(!ringChannel)", you want to check:
That's all you need to do to get that working. BUT, you will want to add other checks to func hit_player and near the start of _func process in Air.gd where Super Toggling is handled to reset the animation. I'll leave that as a learning exercise for you. |
Beta Was this translation helpful? Give feedback.
-
Make sure you copied everything correctly, this code is exactly what I'm using in Sonic 2: Retold where it works fine. And no, it won't. Look where it says: "if Global.hud.iconAnim.current_animation != "Super"" |
Beta Was this translation helpful? Give feedback.
-
XRecorder_Edited_03012025_111219.mp4
I am trying to add a animation for a icon that gets triggered when Global.emeralds =127 and rings = 50 or >50 but I can't get it to work
Beta Was this translation helpful? Give feedback.
All reactions