For ScrollX, Use these blocks!
This is the scripts for the character:
[blocks]<when green flag clicked>
<set{ ScrollX }to( 0[/blocks]
[blocks]<when green flag clicked>
<forever if><key[ left arrow ]pressed?>
<point in direction( -90
<change{ ScrollX }by( How fast you want Him/Her to go
<end>[/blocks]
[blocks]<when green flag clicked>
<forever if><key[ right arrow ]pressed?>
<point in direction( 90
<change{ ScrollX }by( -How fast you want Him/Her to go
<end>[/blocks]
and for the terrains:
[blocks]<when green flag clicked>
<forever>
<set x to( (( <{ ScrollX }> <-> (( 480 <*> The number terrain you did )) ))
<end>[/blocks]
Also, the first terrain has to be 0!
Last edited by scratch_yoshi (2009-10-10 10:50:53)
Offline
The character doesn't need one! If its scrolling, he stays stationary!
Offline
From markyparky56
The character doesn't need one! If its scrolling, he stays stationary!
Yeah, but you would want the character to AT LEAST be pointing in a different direction each time you press an arrow key! Right?
[blocks]<< <and> >>[/blocks] the character is controlling the WHOLE(nearly) level!
Last edited by scratch_yoshi (2009-11-01 14:49:28)
Offline
yeah, but if you've put a script in saying put him at this position on the X axis, its not gonna make him point in the right direction!
Offline
From markyparky56
yeah, but if you've put a script in saying put him at this position on the X axis, its not gonna make him point in the right direction!
I think you're thinking about the scripts for the terrains. You should see Super Luigi Island or Sonic Challenge and look at the scripts!
Last edited by scratch_yoshi (2009-11-01 14:50:16)
Offline
scratch_yoshi wrote:
for the character,and for the terrains:
[blocks]<when green flag clicked>[/blocks]
[blocks]<set x to( (( <{ ScrollX }> <-> (( 480 <*> The number terrain you did )) ))[/blocks]
Also, the number terrain you doesn't really matter, the first terrain has to be 0 though!
Why would the character need to be moving! Its the terrains that need to!
Offline
From markyparky56
From scratch_yoshi
and for the terrains:
[blocks]<when green flag clicked>[/blocks]
[blocks]<set x to( (( <{ ScrollX }> <-> (( 480 <*> The number terrain you did )) ))[/blocks]
Also, the number terrain you doesn't really matter, the first terrain has to be 0 though!Why would the character need to be moving! Its the terrains that need to!
Which is what I'm trying to imply! Would you look at the top?!?! I edited it to make it clearer for you!!!!!!
Last edited by scratch_yoshi (2009-11-01 14:51:56)
Offline
This guide is just a cheesey version of this one http://scratch.mit.edu/forums/viewtopic.php?id=2440
I don't think anyone will find this one useful because it doesn't explain things properly.
Last edited by archmage (2009-09-26 20:49:49)
Offline
Thankyou! you fixed it!
Offline
From markyparky56
Thankyou! you fixed it!
You are welcome! Highlight the rest------>Yay! The argument is over!
Last edited by scratch_yoshi (2009-11-01 14:52:47)
Offline
From archmage
This guide is just a cheesey version of this one.
I don't think anyone will find this one useful because it doesn't explain things properly.
Which one are you talking about?
Last edited by scratch_yoshi (2009-11-01 14:54:23)
Offline