Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2999

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

$
0
0
Image

when i use this, the moment the credits finally stop, this appears. Here's my level lua code (im pretty sure i did everything correctly)

Code:

local credits = require("credits")function onEvent(n)    if n == "playCredits" then        credits.play()    endendfunction onDraw()    if credits.hasEnded() then        Graphics.drawScreen{color = Color.black, priority = 100}        Level.load(Level.filename(Outro.lvlx))    endend
Here's my global luna.lua file

Code:

local customPause = require("customPause")local warpTransition = require("warpTransition")local minHUD = require("minHUD")local credits = require("credits")local rankSystem = require("rankSystem")local levels = {{"!DesertDazzle.lvlx",26000,8000}, {"!DistantDistrict.lvlx",48500,9000}, {"!APerilousClimb.lvlx",29000,10000}, {"!CleftyMountainrange.lvlx",26000,9000}, {"!PumpingPlasmaCave.lvlx",10000,13500},         {"!NightlyFrolics.lvlx",9000,18500},         {"!AboveTheClouds.lvlx",9000,18500},         {"!VolatileAircraft.lvlx",9000,18500},}for i = 1, #levels dorankSystem.registerLevel(levels[i][1], -- registers the levelname per levellevels[i][2], -- registers the requirement per levellevels[i][3] -- registers the time preset per level)end

Statistics: Posted by Retro — Sun Jun 22, 2025 12:08 pm



Viewing all articles
Browse latest Browse all 2999

Trending Articles