Page 1 of 1

Need help with custom autoscroll!

Posted: Wed Oct 23, 2024 9:52 pm
by SuperMachoBros
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

Re: Need help with custom autoscroll!

Posted: Thu Oct 24, 2024 10:29 am
by mariobrigade2018
Autoscroll.lua doesn’t support 2-players right now.

Re: Need help with custom autoscroll!

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