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

#1 2011-05-12 18:34:48

bdn7
Scratcher
Registered: 2010-07-10
Posts: 100+

Falling Buildings

I made a game: http://scratch.mit.edu/projects/bdn7/1781102
In the game you shoot missiles at buildings that have been drawn with a pen script. The explosion erases parts of the building, but sometimes the bottom of the building is gone, and the top half is still there floating, or unrealistically standing. How can I make a whole building explode if the bottom is hit?

Last edited by bdn7 (2011-05-12 18:35:28)


http://i.imgur.com/Q7PiV.png
That's right. My text is BLUE.

Offline

 

#2 2011-05-12 21:27:36

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Falling Buildings

I would make the bottom of the building its own sprite, just for sensing purposes.  Then broadcast DestroyEntireBuilding if the bottom sprite is hit by a missile which explodes both halves of the building.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#3 2011-05-12 23:09:33

LordSydney
Scratcher
Registered: 2011-04-20
Posts: 100+

Re: Falling Buildings

lol


Need help with BBCode?
http://i.imgur.com/IfWrL.gifAlso check this out!http://i.imgur.com/YgF2v.gif

Offline

 

#4 2011-05-12 23:31:36

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Falling Buildings

LordSydney wrote:

lol

Please don't spam.

MoreGamesNow wrote:

I would make the bottom of the building its own sprite, just for sensing purposes.  Then broadcast DestroyEntireBuilding if the bottom sprite is hit by a missile which explodes both halves of the building.

Actually, I would have said to make the top half a different sprite, and have it hide if the missile is below.

Offline

 

#5 2011-05-13 16:59:24

bdn7
Scratcher
Registered: 2010-07-10
Posts: 100+

Re: Falling Buildings

scimonster wrote:

LordSydney wrote:

lol

Please don't spam.

MoreGamesNow wrote:

I would make the bottom of the building its own sprite, just for sensing purposes.  Then broadcast DestroyEntireBuilding if the bottom sprite is hit by a missile which explodes both halves of the building.

Actually, I would have said to make the top half a different sprite, and have it hide if the missile is below.

That would work, but the buildings are drawn by a sprite that has pen scripting.


http://i.imgur.com/Q7PiV.png
That's right. My text is BLUE.

Offline

 

#6 2011-05-13 18:04:06

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Falling Buildings

scimonster wrote:

LordSydney wrote:

lol

Please don't spam.

MoreGamesNow wrote:

I would make the bottom of the building its own sprite, just for sensing purposes.  Then broadcast DestroyEntireBuilding if the bottom sprite is hit by a missile which explodes both halves of the building.

Actually, I would have said to make the top half a different sprite, and have it hide if the missile is below.

just saying, don't minimod in teh future  tongue


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

Board footer