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

Help and Support • Need help with custom autoscroll!

$
0
0
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:

    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

Statistics: Posted by SuperMachoBros — Wed Oct 23, 2024 9:52 pm



Viewing all articles
Browse latest Browse all 2996

Trending Articles