make logo bump on beat
This commit is contained in:
parent
72ae46a848
commit
1ab0d2cb00
@ -165,8 +165,7 @@ class TitleState extends MusicBeatState
|
|||||||
logoBl = new FlxSprite(-150, 1500);
|
logoBl = new FlxSprite(-150, 1500);
|
||||||
logoBl.frames = Paths.getSparrowAtlas('KadeEngineLogoBumpin');
|
logoBl.frames = Paths.getSparrowAtlas('KadeEngineLogoBumpin');
|
||||||
logoBl.antialiasing = true;
|
logoBl.antialiasing = true;
|
||||||
logoBl.animation.addByPrefix('bump', 'logo bumpin', 24);
|
logoBl.animation.addByPrefix('bump', 'logo bumpin', 24, false);
|
||||||
logoBl.animation.play('bump');
|
|
||||||
logoBl.updateHitbox();
|
logoBl.updateHitbox();
|
||||||
// logoBl.screenCenter();
|
// logoBl.screenCenter();
|
||||||
// logoBl.color = FlxColor.BLACK;
|
// logoBl.color = FlxColor.BLACK;
|
||||||
@ -174,8 +173,7 @@ class TitleState extends MusicBeatState
|
|||||||
logoBl = new FlxSprite(-150, -100);
|
logoBl = new FlxSprite(-150, -100);
|
||||||
logoBl.frames = Paths.getSparrowAtlas('logoBumpin');
|
logoBl.frames = Paths.getSparrowAtlas('logoBumpin');
|
||||||
logoBl.antialiasing = true;
|
logoBl.antialiasing = true;
|
||||||
logoBl.animation.addByPrefix('bump', 'logo bumpin', 24);
|
logoBl.animation.addByPrefix('bump', 'logo bumpin', 24, false);
|
||||||
logoBl.animation.play('bump');
|
|
||||||
logoBl.updateHitbox();
|
logoBl.updateHitbox();
|
||||||
// logoBl.screenCenter();
|
// logoBl.screenCenter();
|
||||||
// logoBl.color = FlxColor.BLACK;
|
// logoBl.color = FlxColor.BLACK;
|
||||||
@ -378,7 +376,7 @@ class TitleState extends MusicBeatState
|
|||||||
{
|
{
|
||||||
super.beatHit();
|
super.beatHit();
|
||||||
|
|
||||||
logoBl.animation.play('bump');
|
logoBl.animation.play('bump', true);
|
||||||
danceLeft = !danceLeft;
|
danceLeft = !danceLeft;
|
||||||
|
|
||||||
if (danceLeft)
|
if (danceLeft)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user