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

#1 2012-06-27 15:59:48

MoeJoe
Scratcher
Registered: 2009-05-19
Posts: 11

How do you make something move to block something else?

How do you make something move to block something else, with sometimes missing it?

Offline

 

#2 2012-06-27 16:42:47

Prestige
Scratcher
Registered: 2008-12-15
Posts: 100+

Re: How do you make something move to block something else?

point towards [sprite 1 v]
turn clockwise (pick random (-5) to (5)) degrees
set [distance v] to (distance to [sprite 1 v])
repeat (10)
    move ((distance)/(10)) steps
something like this?  smile


"Don't insult someone until you've walked a mile in their shoes. That way, if they don't like what you have to say, you'll be a mile away and still have their shoes  smile  "

Offline

 

#3 2012-06-27 17:26:21

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: How do you make something move to block something else?

when gf clicked
set [distance v] to (([y position v] of [sprite 2 v]) - (y position))
forever
glide ((distance)/(accuracy)) secs to x:(x) y:([y position v] of [sprite 2 v])
accuracy about 300-400 is a mediocre hit rate,more than 600 is impossible, although it's all dependant on the velocity of the target.


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

Board footer