4 years ago

how do I make my main menu animated? Is there anyway to convert this to an animation and not just a png. My code is in the article.


var bg:FlxSprite = new FlxSprite(-100).loadGraphic(Paths.image('menuBG'));

bg.scrollFactor.x = 0;

bg.scrollFactor.y = 0;

bg.setGraphicSize(Std.int(bg.width * 1));

bg.updateHitbox();

bg.screenCenter();

bg.antialiasing = FlxG.save.data.antialiasing;

//bg.animation.addByPrefix('idle', 'PaintNeutralEnter', 24, false);

//bg.animation.play('idle');

add(bg);



9 comments

Loading...

Next up

AKAGE

Friday Night Funkin'

Enemies can also suddenly spawn through Realm Rifts. These Rift Spawns are going to be stronger than the ones wandering around. TBD on the enemies... #screenshotsaturday #godstear #madewithunity

Updated the chest in the maze, adding sound, particles and better animation. But what's in the chest?

The whole squad is here!

Interested? Follow me!

Update 2.627

New challenges & new effects!

Rockin the Guitar, an Axe like Guitar I made for my Uni project

Spaaaace~

These are background sprites I've created for a game I'm working on at school ^w^ Click on the post to see how the sprites connect. You won't regret it! (personally, I think it's pretty heheh)

Drawn in Piskel using my mouse. Whaddya think?