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

#1 2010-04-23 20:34:45

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

Direction

I need a script for my world famous windows7 screensaver http://scratch.mit.edu/projects/qwertypower/959592
Currently the bubbles only bounce off the walls but I want to make them like the
real screensaver and have them bounce off each other. Please give me a script!


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

#2 2010-04-23 21:58:27

killubear
Scratcher
Registered: 2009-07-14
Posts: 7

Re: Direction

im gonna work on one ill get back to u in a bit

Offline

 

#3 2010-04-23 22:17:43

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: Direction

Wow thats a nice project. If you want your project to be a real screensaver on your computer you can download the screensaver I made and select this project to display on your screensaver. See link in my sig.


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

#4 2010-04-23 22:19:34

killubear
Scratcher
Registered: 2009-07-14
Posts: 7

Re: Direction

when flag
   forever
       if touching sprite 2
          point in direction [ direction of sprite 2]
       >close if
       if touching sprite 3
           point in direction [ direction of sprite 3]
       >close if
       if on edge bounce
       move 5 steps
       wait 0.1 sec
    >close forever



thats as close as i could get srry its not exactly right but it was the best i could do

Offline

 

Board footer