Ghost Trail Script #688
Replies: 2 comments 6 replies
-
"Ghost trials" are more typically called afterimages, if you're thinking of the ones such as in games like Pizza Tower or a majority of the Sonic the Hedgehog games. As for the script, are you sure you're getting the offset after the singing animation has actually played? From my understanding, strumLine.onHit.dispatch(event); // PlayState.hx, line 1721
scripts.event("onNoteHit", event);
if (!event.cancelled) {
if (!note.isSustainNote) {
if (event.countScore) songScore += event.score;
if (event.accuracy != null) {
accuracyPressedNotes++;
totalAccuracyAmount += event.accuracy;
updateRating();
}
if (event.countAsCombo) combo++;
if (event.showRating || (event.showRating == null && event.player))
{
displayCombo(event);
if (event.displayRating)
displayRating(event.rating, event);
ratingNum += 1;
}
}
if (strumLine != null) strumLine.addHealth(event.healthGain);
if (!event.animCancelled)
for(char in event.characters)
if (char != null)
char.playSingAnim(event.direction, event.animSuffix, SING, event.forceAnim); |
Beta Was this translation helpful? Give feedback.
-
Uh chat there is an entire class that does this for you https://api.haxeflixel.com/flixel/addons/effects/FlxTrail.html It's been a while since I've used it but also like I believe it does the same thing as doing it manually but better? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
been trying to troubleshoot this songs folder script for like two hours and I can't figure out why the offsets are still way off. Someone please help me if you know what's the matter with this
Script (in
songs/
):Beta Was this translation helpful? Give feedback.
All reactions