mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-23 10:29:29 +00:00
some timing polish
This commit is contained in:
parent
80892bd3a2
commit
06da64ac20
|
@ -238,6 +238,11 @@ class FreeplayState extends MusicBeatSubstate
|
|||
funnyMenu.alpha = 0.5;
|
||||
funnyMenu.songText.visible = false;
|
||||
|
||||
new FlxTimer().start((1 / 24) * i, function(doShit)
|
||||
{
|
||||
funnyMenu.doJumpIn = true;
|
||||
});
|
||||
|
||||
new FlxTimer().start((0.09 * i) + 0.85, function(lerpTmr)
|
||||
{
|
||||
funnyMenu.doLerp = true;
|
||||
|
|
|
@ -20,6 +20,7 @@ class SongMenuItem extends FlxSpriteGroup
|
|||
|
||||
public var targetPos:FlxPoint = new FlxPoint();
|
||||
public var doLerp:Bool = false;
|
||||
public var doJumpIn:Bool = false;
|
||||
|
||||
public function new(x:Float, y:Float, song:String)
|
||||
{
|
||||
|
@ -49,6 +50,8 @@ class SongMenuItem extends FlxSpriteGroup
|
|||
var xPosLerpLol:Array<Float> = [0.9, 0.4, 0.16, 0.16, 0.22, 0.22, 0.245]; // NUMBERS ARE JANK CUZ THE SCALING OR WHATEVER
|
||||
|
||||
override function update(elapsed:Float)
|
||||
{
|
||||
if (doJumpIn)
|
||||
{
|
||||
frameTicker += elapsed;
|
||||
|
||||
|
@ -62,6 +65,7 @@ class SongMenuItem extends FlxSpriteGroup
|
|||
|
||||
frameTypeBeat += 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (doLerp)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue