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

An out of boredom Bf sprite sketch

Nene

I took the day off today

Illegal instruction (repost)

Runestones: from concept to in-game modelπŸ—Ώ

Shadow The Hedgehog X pixel art

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?

Quantum precognition is one of the most powerful cards. End game cards & equipment. Demo/alpha build boss is no match for this deck.

"Our work is never over" they said.

Sometimes the suction cup get sticky. Small animation I made in Blender after doing my tutorial on picking up/dropping objects in animations. Crate model by jQueary (https://sketchfab.com/3d-models/game-ready-sci-fi-crate-d98deca6…).

The Darkside Detective: A Fumble in the Dark is out TODAY! πŸ–±οΈAdvanced pointing, clicking action πŸ–¨οΈVery funny words! Loads of them! πŸ‘»6 sarcastic, spectral cases to solve