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

#1 2009-03-18 09:31:21

Yeager9
Scratcher
Registered: 2009-03-18
Posts: 1

Walk across the screen

i want someone to walk across the screen and when they get to the edge they go back to where they started. how do i do that, i have tried everything. PLEAASE HELP ME.

Offline

 

#2 2009-03-18 10:40:26

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Walk across the screen

[blocks]<when green flag clicked>
<forever>
<wait until><touching[ edge
<go to x sad  START )y sad  START
<end>
[/blocks]

I hope that works for you.  smile


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#3 2009-03-18 15:12:00

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Walk across the screen

I just have to make this little change for you.

<when green flag clicked>
<go to x sad   start)y sad  start
<forever>
<wait until><<  <not>  >><touching[ edge
<wait until><touching[ edge
<end>


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#4 2009-03-19 04:20:39

adityasm9
Scratcher
Registered: 2008-03-12
Posts: 100+

Re: Walk across the screen

[blocks]
<when green flag clicked>
<go to x sad  start )y:(start
<forever>
<repeat until><touching[ edge
<change x by( 1
<if><touching[ edge
<go to x sad  start )y:(start
<end>
<end>

this is much more clear

Last edited by adityasm9 (2009-03-19 04:21:06)

Offline

 

Board footer