This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-06-26 18:27:56

SLK
Scratcher
Registered: 2008-06-15
Posts: 20

Walk in a line

I tried setting the sprite on a slant line, and it sorta did that for 1 path, but then for the other paths (maybe I put too many wrong codes, or too many codes), now the sprite gets stuck at the beginning point, does in one direction only... how can I fix that problem?


Or better, yet, what are the codes for walking let's say, in like a zig zag line, where the background is a landscape (not just 2 colours)?

Thanks

Offline

 

#2 2008-06-26 18:30:55

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Walk in a line

I'm really confused. From what i understand, you need sensing of the ground, right? Something like:

[blocks]<forever>[/blocks]
[blocks]<if><touching color[ A color[/blocks]
[blocks]<change y by( 1[/blocks]
[blocks]<end>[/blocks]
[blocks]<if><  <not> <touching color[ A color  >>[/blocks]
[blocks]<change y by( -1[/blocks]
[blocks]<end>[/blocks]
[blocks]<end>[/blocks]


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

Board footer