5 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

I made a Zipperbomb Lyrics Cover cuz i was bored

Depression

πŸŽ€β•‘ fandom art 34 β•‘πŸŽ€

chibi zardyπŸŽƒ

Short intro of us πŸ’•βœŒοΈ

We're an eletro duo based in Seoul πŸ‡°πŸ‡· Heavily influenced by the 90s.

Our new album #Xennials is all about the nostalgia of that era πŸ’½ CD listenin πŸ“Ÿ beeper beepin πŸ’Ύ floppy disks floppin days 😎

Stream now! 🎧

https://open.spotify.com/album/3YwWhnHWVy5cA8XOpbaGRA?si=8E9awqU…

Shoobies leave a sticky trail of mucus in their wake, which can impede movement for any creature that steps in it.

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

I have added rewards for quests so that villagers can give you something in return for your hard work helping them. πŸ₯³

I want to know - what's your favourite quest reward?

What do you think guys in my robot?Just a beginner in 3d modeling..

My instagram https://www.instagram.com/rojhonbb/

If you have more of an acquired taste, the restaurants in Niravasi have you covered! Maybe skip the salad bar, though.

Some Shadow boss fight gameplay πŸ‘Ύ