mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-30 03:25:47 -05:00
downscroll susnotes positioning
This commit is contained in:
parent
c6cc9a73de
commit
2d48435b3b
1 changed files with 16 additions and 9 deletions
|
@ -1620,7 +1620,7 @@ class PlayState extends MusicBeatState
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while (unspawnNotes[0] != null &&unspawnNotes[0].strumTime - Conductor.songPosition < 1500 / SONG.speed)
|
while (unspawnNotes[0] != null && unspawnNotes[0].strumTime - Conductor.songPosition < 1800 / SONG.speed)
|
||||||
{
|
{
|
||||||
var dunceNote:Note = unspawnNotes[0];
|
var dunceNote:Note = unspawnNotes[0];
|
||||||
notes.add(dunceNote);
|
notes.add(dunceNote);
|
||||||
|
@ -1650,8 +1650,14 @@ class PlayState extends MusicBeatState
|
||||||
{
|
{
|
||||||
daNote.y = (strumLine.y + (Conductor.songPosition - daNote.strumTime) * (0.45 * FlxMath.roundDecimal(SONG.speed, 2)));
|
daNote.y = (strumLine.y + (Conductor.songPosition - daNote.strumTime) * (0.45 * FlxMath.roundDecimal(SONG.speed, 2)));
|
||||||
|
|
||||||
if (daNote.isSustainNote
|
if (daNote.isSustainNote)
|
||||||
&& (!daNote.mustPress || (daNote.wasGoodHit || (daNote.prevNote.wasGoodHit && !daNote.canBeHit)))
|
{
|
||||||
|
if (daNote.animation.curAnim.name.endsWith("end") && daNote.prevNote != null)
|
||||||
|
daNote.y += daNote.prevNote.height;
|
||||||
|
else
|
||||||
|
daNote.y += daNote.height / daNote.scale.y;
|
||||||
|
|
||||||
|
if ((!daNote.mustPress || (daNote.wasGoodHit || (daNote.prevNote.wasGoodHit && !daNote.canBeHit)))
|
||||||
&& daNote.y - daNote.offset.y * daNote.scale.y + daNote.height >= strumLineMid)
|
&& daNote.y - daNote.offset.y * daNote.scale.y + daNote.height >= strumLineMid)
|
||||||
{
|
{
|
||||||
// div by scale because cliprect is affected by scale i THINK
|
// div by scale because cliprect is affected by scale i THINK
|
||||||
|
@ -1662,6 +1668,7 @@ class PlayState extends MusicBeatState
|
||||||
daNote.clipRect = swagRect;
|
daNote.clipRect = swagRect;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
daNote.y = (strumLine.y - (Conductor.songPosition - daNote.strumTime) * (0.45 * FlxMath.roundDecimal(SONG.speed, 2)));
|
daNote.y = (strumLine.y - (Conductor.songPosition - daNote.strumTime) * (0.45 * FlxMath.roundDecimal(SONG.speed, 2)));
|
||||||
|
|
Loading…
Reference in a new issue