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

#1 2012-09-01 11:37:57

benlw123
New Scratcher
Registered: 2012-08-18
Posts: 1

Need Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

need help with makeing my boss sprite die when he is hit by a power up in Z-mans ad ventures.

Offline

 

#2 2012-09-01 12:26:47

humhumgames
Scratcher
Registered: 2012-03-26
Posts: 1000+

Re: Need Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

So, make a variable for health, and subtract one from 'health' every time it gets hit. If the boss sprite was hit with an extra powerful move, subtract more from that variable. Then, put this script:

when gf clicked
forever
  if <(health)=[0]>
    Insert scripts on what happens to the boss sprite here
  else
  
end

Last edited by humhumgames (2012-09-01 12:27:08)

Offline

 

#3 2012-09-01 16:42:25

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Need Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

humhumgames wrote:

when gf clicked
forever if <(health) < [1]>
Insert scripts on what happens to the boss sprite here

this will work better

Last edited by Wes64 (2012-09-01 16:43:00)


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#4 2012-09-01 19:01:08

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

Re: Need Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

when gf clicked
wait until <(health) < (1)>
boss dies


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

Offline

 

#5 2012-09-01 19:11:24

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: Need Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

when gf clicked
forever
if (I am dead)
die


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#6 2012-09-01 21:55:34

humhumgames
Scratcher
Registered: 2012-03-26
Posts: 1000+

Re: Need Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

dvd4 wrote:

when gf clicked
forever
if (I am dead)
die

I don't think that will work...

@Wes64: you're right. Thanks.  smile

Offline

 

#7 2012-09-02 12:23:41

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: Need Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

humhumgames wrote:

dvd4 wrote:

when gf clicked
forever
if (I am dead)
die

I don't think that will work...

@Wes64: you're right. Thanks.  smile

really ?


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#8 2012-09-02 12:26:14

Pfctink
Scratcher
Registered: 2012-08-28
Posts: 22

Re: Need Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Just make it when the player picks up the power up, it broadcasts something, then when I receive (value/word) Then you edit however he is suppose to die, such as, if he has health, put it to 0 and then hide the sprite.

Offline

 

Board footer