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

#1 2013-03-07 20:40:35

idon12
New Scratcher
Registered: 2013-03-07
Posts: 1

How do I blow up an asteroid with a missle?

Working on a school project and was absent when this was taught, need an answer quick or my father is going to kill me.

Offline

 

#2 2013-03-07 22:08:09

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: How do I blow up an asteroid with a missle?

idon12 wrote:

Working on a school project and was absent when this was taught, need an answer quick or my father is going to kill me.

Well, something you could do is this simple script (in your asteroid):

when gf clicked
forever
 if (touching [Rocket v]?)//Senses if touching rocket...
  Explode!
  wait until <not(touching[Rocket v]?)>//Little add on so won't explode twice...
 end

Basically, what it's doing is that it's detecting whether or not it's touching a rocket, and from there, exploding however you want. The rest you should be able to figure out.  wink

I hope that this helps!

With regards,

ErnieParke

P.S. Next time, I recommend asking your dad or teacher for some help because if you did miss class, then they should understand this and be willing to help you with what you need.

Last edited by ErnieParke (2013-03-07 22:10:23)


http://i46.tinypic.com/35ismmc.png

Offline

 

#3 2013-03-07 22:40:32

bob6
Scratcher
Registered: 2010-07-01
Posts: 100+

Re: How do I blow up an asteroid with a missle?

Ernie, you forgot one thing:

when gf clicked
show
forever
 if <touching [rocket v]?>
 place explode sequence here
 hide
 wait until <not <touching [rocket v]?>>
 end
end
You forgot "hide" block... after exploding the remaining pieces would just keep on moving.
wink


http://i46.tinypic.com/3148ksz.gif

Offline

 

Board footer