Well, I know no one really cares about it, but I'd figure I'd explain it. First, go to Archmages thread, and learn method 1. Now, add this to the stage, and add variable finder.
[blocks]<when green flag clicked>[/blocks]
[blocks]<forever>[/blocks]
[blocks]<if><( <{ ScrollX }> <<> 1 )>[/blocks]
[blocks]<set{ Finder }to( <round( (( (( <abs( <{ ScrollX }> </> 1000 )) <*> 2 ))[/blocks]
[blocks]<else>[/blocks]
[blocks]<if><( <{ ScrollX }> <>> 1 )>[/blocks]
[blocks]<set{ Finder }to( <round( (( (( <abs( <{ ScrollX }> </> 1000 )) <*> -2 ))[/blocks]
[blocks]<end>[/blocks]
Now the If block in the else block isn't really necessary, but Ilike it so it won't do it whenever.
Now, make 3 terrain sprites, and name the first one Main X. Put in this script:
[blocks]<when green flag clicked>[/blocks]
[blocks]<forever>[/blocks]
[blocks]<set x to( (( <{ ScrollX }> <+> (( 480 <*> <{ Finder }> )) ))[/blocks]
Now for This one, name it Negative X, and put this in it:
[blocks]<when green flag clicked>[/blocks]
[blocks]<forever>[/blocks]
[blocks]<set x to( (( <{ ScrollX }> <+> (( 480 <*> (( <{ Finder }> <-> 1 )) )) ))[/blocks]
And finally, the last one, name it Positive X, and this goes in it:
[blocks]<when green flag clicked>[/blocks]
[blocks]<forever>[/blocks]
[blocks]<set x to( (( <{ ScrollX }> <+> (( 480 <*> (( <{ Finder }> <+> 1 )) )) ))[/blocks]
Alright, there it is. You can also add more sprites, like Negative X2, where you change the minus one to a minus two, because as you go further, the longer it takes to change finder.
Offline
its not working?
Offline
This is confusing.
Offline
Not really. It just makes Scroll X a very small number, than multiplies by 2 to get it greater thna .5, and rounds that
Offline