Help with capture buffers

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

proCoder
Shy Guy
Shy Guy
Posts: 5
Joined: Sat Mar 15, 2025 7:28 pm
Flair: The best coder (maybe)
Pronouns: he/him

Help with capture buffers

Postby proCoder » Sun Mar 16, 2025 3:30 pm

I'm trying to capture the level background for use in my lives screen,
But it just says "Invalid type for capture buffer."

When I looked into the code, I discovered my capture buffer... isn't a capture buffer??
This is my code:

Code: Select all

local buffer = Graphics.CaptureBuffer(cam.width, cam.height)
buffer.captureAt(-100)

Graphics.drawBox{
    x = 0,
    y = 0,
    priority = priority - 2,
    w = cam.width,
    h = cam.height,
    texture = buffer
}

Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari