Files
resources/semag/fridaynightfunkin/assets/scripts/characters/tankman-atlas.hxc
2025-06-22 12:00:12 -04:00

32 lines
765 B
Plaintext
Executable File

import funkin.play.character.AnimateAtlasCharacter;
import funkin.play.character.CharacterType;
import funkin.play.PlayState;
/**
* A prototype variant of Tankman that uses the Adobe Animate Texture Atlas animation system.
*/
class TankmanAtlasCharacter extends AnimateAtlasCharacter {
function new() {
super('tankman-atlas');
}
function onNoteHit(event:HitNoteScriptEvent)
{
if (!event.note.noteData.getMustHitNote() && characterType == CharacterType.DAD) {
// Override the hit note animation.
switch(event.note.kind) {
case "ugh":
holdTimer = 0;
this.playAnimFbfation('ugh');
return;
case "hehPrettyGood":
holdTimer = 0;
this.playAnimation('hehPrettyGood');
return;
}
}
super.onNoteHit(event);
}
}