Board Thread:Questions and Answers/@comment-24386245-20140806115143

OK, so I made a map (For my platformer) the other day, and I added it to my platformer, but I need help getting it to scroll. would I do something like this?

@LOOP

[INSERT ALL OTHER MOVEMENT CODING HERE]

IF PX==OLDX-1 THEN GRPX=GRPX-1

IF PX==OLDX+1 THEN GRPX=GRPX+1

IF PY==OLDY+1 THEN GRPY=GRPY+1

IF PY==OLDY-1 THEN GRPY=GRPY-1

GOSUB @SETMAP

And so on and so forth? Or would I set something like this:

@PLEFT

[Blah blah animation coding]

X=X-1

GRPX=GRPX-1

GOSUB @MAPSET

RETURN ( To the main loop )

Please help!!! 