glintfishGH / Fraps

FNF Engine made for hardcoded, high performant mods.
10 stars 1 forks source link

Sustain notes.... #1

Open DarkNight3533 opened 22 hours ago

DarkNight3533 commented 22 hours ago

There is the code (not perfect) for sustain notes var swagRect = new Bounds();

                        swagRect.height = (playerStrumGrp[Math.floor(Math.abs(i.noteData))].y
                            + i.tile.width / 2
                            - i.y) / i.scaleY;
                        swagRect.y = i.tile.height*2 - swagRect.height;
                        if(!i.isEndSustain){   // THIS IS FOR THE LAST NOTE TAIL
                            i.y = swagRect.y+10;
                        }
                        else {
                            i.y = swagRect.y-i.tile.height/2 + 5;
                        }
                        i.scaleY -= ((songSpeed*0.1)*Conductor.stepCrochet/100)/(songSpeed); // THIS IS WEIRD WHEN FAST OR SLOW SPEED