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

#1 2011-11-12 07:10:03

xXsprattyXx
New Scratcher
Registered: 2011-11-12
Posts: 7

How to make things disappear and how to broadcast that it did

Hi, im trying to make a projectile disappear after it hits the target, any help out there? and also how do i make it so that the projectile will broadcast 'hit' so my health bars can take themselves into action. Thanks!

Offline

 

#2 2011-11-12 08:12:35

KyleK7
Scratcher
Registered: 2011-06-14
Posts: 500+

Re: How to make things disappear and how to broadcast that it did

Here:
[blocks]<if><touching[target]>
<hide>
<broadcast[hit]>
<end>[/blocks]


http://i46.tinypic.com/zwxnhh.gif

Offline

 

#3 2011-11-12 08:16:49

xXsprattyXx
New Scratcher
Registered: 2011-11-12
Posts: 7

Re: How to make things disappear and how to broadcast that it did

Emm... That didnt work  hmm

Offline

 

#4 2011-11-12 19:57:14

anuw
Scratcher
Registered: 2009-04-09
Posts: 50

Re: How to make things disappear and how to broadcast that it did

Well you need to have for bullet

if touching sprite person
hide
broadcast hit


For person

when /= clicked
set health to 10 (watever)
when I recieve hit
change health by -2 (or watever)


another script for person

if health 1>0
hide


You could add watever u want to those scripts, overall, hoped I helped  wink


http://lolwut.com/layout/lolwut.jpg Lolwut?

Offline

 

#5 2011-11-12 20:33:06

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

Re: How to make things disappear and how to broadcast that it did

<when I receive[ shoot ]>
<wait until><touching[ target ]>
<hide>


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

Offline

 

Board footer