credits.lua [v1] - simple credits display!

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

Marioman2007
2025 Egg Hunter
2025 Egg Hunter
Posts: 537
Joined: Tue Aug 25, 2020 3:19 am
Flair: Dr. Bones
Pronouns: He/Him

credits.lua [v1] - simple credits display!

Postby Marioman2007 » Tue Jun 10, 2025 5:28 am

A simple script to show credits.
You can use textplus tags.

Showcase:
Spoiler: show
Image

Example Codes:
Some basic actions which can be done by the script, make sure to load credits.lua first.
Spoiler: show
Starting the credits when an event "playCredits" is triggered:

Code: Select all

function onEvent(n)
    if n == "playCredits" then
        credits.play()
    end
end
Loading a level when the credits have ended:

Code: Select all

function onDraw()
    if credits.hasEnded() then
        Graphics.drawScreen{color = Color.black, priority = 100}
        Level.load(Level.filename())
    end
end

Download:
https://drive.google.com/file/d/1d_dYFb ... sp=sharing

Prismarine
2025 Egg Hunter
2025 Egg Hunter
Posts: 324
Joined: Thu Jul 25, 2024 5:34 am
Flair: fish
Pronouns: i identify as sand

Re: credits.lua [v1] - simple credits display!

Postby Prismarine » Tue Jun 10, 2025 8:24 am

W script im using this


Return to “LunaLua”

Who is online

Users browsing this forum: zerhabi and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari