character scripts

This commit is contained in:
YoshiCrafter29
2022-10-11 09:29:58 +02:00
parent c4dcafae91
commit 00fff01e04
12 changed files with 5431 additions and 5111 deletions
+10
View File
@@ -0,0 +1,10 @@
import funkin.system.Conductor;
import flixel.tweens.FlxTween;
import funkin.scripting.events.NoteHitEvent;
function onPlayerHit(event:NoteHitEvent) {
if (event.note.isSustainNote) return;
event.preventDeletion();
FlxTween.tween(event.note, {strumTime: event.note.strumTime + (Conductor.crochet * 2)}, Conductor.crochet / 500, {ease: FlxEase.cubeOut});
event.note.wasGoodHit = false;
}