Quiest
I like turtles!
I started to make the levels.
Now, scrolling doesn`t work like I want it to.
I use the scrolling type that follows the player, when he`s in the middle of the screen.
But as usual in Metal Slug, most levels only scroll to the right (or only one direction), so can someone tell me, how to make this work (only to the right in this case)?
I know there has to be a little command or something has to be changed.
Here is the code I used to test the scrolling:
Now, scrolling doesn`t work like I want it to.
I use the scrolling type that follows the player, when he`s in the middle of the screen.
But as usual in Metal Slug, most levels only scroll to the right (or only one direction), so can someone tell me, how to make this work (only to the right in this case)?
I know there has to be a little command or something has to be changed.
Here is the code I used to test the scrolling:
Code:
Process player(x,y,z,flags);
Begin
file=charfpg;
graph=1;
ctype=c_scroll;
Loop
if(key(_right) and not key(_left))flags=0;dir=flags;x+=10;end;
if(key(_left) and not key(_right))flags=1;dir=flags;x-=10;end;
if(x>1830)x=1839;end;
if(x<10)x=10;end;
Frame;
End;
End;
Process level1a(z);
Begin
file=level1afpg;
if(dir==0)start_scroll(0,0,1,0,0,0);end;
if(dir==1)stop_scroll(0);end; //tried to stop scrolling with this, but it didn`t work
scroll.camera=idplayer;
End;