ShadowMario / FNF-PsychEngine

Engine originally used on Mind Games mod
Apache License 2.0
1.05k stars 2.11k forks source link

Animated Menu BG #14790

Open theonetruefunnismile opened 4 weeks ago

theonetruefunnismile commented 4 weeks ago

Describe your problem here.

I want to make an animated menu (where the story, freeplay, credits, etc etc), but I kind of suck at coding. It's like a scrolling image.

Are you modding a build from source or with Lua?

Lua

What is your build target?

Windows x64

Did you edit anything in this build? If so, mention or summarize your changes.

No response

YouDevsYoupikmin commented 4 weeks ago

Due to title, Add a animation to the bg?

theonetruefunnismile commented 3 weeks ago

Due to title, Add a animation to the bg?

How do i do that lol

YouDevsYoupikmin commented 3 weeks ago

Due to title, Add a animation to the bg?

How do i do that lol

Add

    var renamethis:FlxSprite = new FlxSprite(-80);
    renamethis.frames = Paths.getSparrowAtlas('imageName', 'shared'); // shared is the folder (assets/shared/images/) remove it if it's on preload folder.
    renamethis.antialiasing = ClientPrefs.data.antialiasing;

    renamethis.animation.addByPrefix('wanim', 'anim name on xml', 24);
    renamethis.animation.play('wanim', true);
    renamethis.updateHitbox();
    add(renamethis);

to titleState.hx on "override function create()" image

YouDevsYoupikmin commented 3 weeks ago

Oh damn i fargot it's lua, idk if it's possible to edit mainmenu with lua