Need help with custom autoscroll!

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

SuperMachoBros
Shy Guy
Shy Guy
Posts: 6
Joined: Mon Sep 30, 2024 11:20 pm
Pronouns: he/him

Need help with custom autoscroll!

Postby SuperMachoBros » Wed Oct 23, 2024 9:52 pm

Hi, i'm trying to get this autoscrolling working, with one player it works fine, but with two players I get this error, how do I get it to work for two players?

CODE:

Code: Select all

    players = {player}
    if tablelength(Block.get(990)) > 0 then
        autoscroll.unlockSection()
        if Block.get(990)[1].x <= players[playerIdx].x then
            for i=1,1 do
                for p=1,tablelength(Player.get()) do
                    if Section.getIdxFromCoords(Block.get(990)[1].x, Block.get(990)[1].y, 16, 16) == Player.get()[p].section then
                        autoscroll.scrollRight(1.000000000000000)
                    end
                end
            end
        end
    end
ERROR:

Image

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 607
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: Need help with custom autoscroll!

Postby mariobrigade2018 » Thu Oct 24, 2024 10:29 am

Autoscroll.lua doesn’t support 2-players right now.

SuperMachoBros
Shy Guy
Shy Guy
Posts: 6
Joined: Mon Sep 30, 2024 11:20 pm
Pronouns: he/him

Re: Need help with custom autoscroll!

Postby SuperMachoBros » Thu Oct 24, 2024 3:52 pm

mariobrigade2018 wrote:
Thu Oct 24, 2024 10:29 am
Autoscroll.lua doesn’t support 2-players right now.
oh ok :( , thanks!!!


Return to “Help and Support”

Who is online

Users browsing this forum: Semrush [Bot] and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari