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

#1 2010-11-23 20:22:33

Lab101010
Scratcher
Registered: 2010-10-05
Posts: 9

Help me plz

Could you guys please help me? im making a first person shooter game and when i kill the people their dead bodies start moving. then they get back up and go back to the start. when they get to you when thehy die they just get back up and you die. i know what the problem is its just i dont know how to fix it. could someone help me? the problem is a similar script (the "spawn" script) is running after you kill him. heres the first script for the person:
<when green flag clicked>
<switch to costume[1]>
<hide>
<go to x sad  Random )y sad  100 )
<wait( 1 )secsc>
<show>
<glide( Random )secs to x sad  Random )y sad   25 )
<glide( Random )secs to x sad  Random )y sad  -25  )
<glide( Random )secs to x sad  Random )y sad   -75 )
<forever>
<switch to costume[ 2 ]>
<wait( 2 )secsc>
<switch to costume[ 3 ]>
<play drum( 49 )for( 0.5 )secss>
<play drum( 49 )for( 0.5 )secss>
<play drum( 49 )for( 0.5 )secss>
<change{ Health }by( 10 )
<end>

if you could help me that would be AWSOME. thanks!
-- Lab101010

Offline

 

#2 2010-11-23 20:33:22

Maki-Tak
Scratcher
Registered: 2008-03-10
Posts: 100+

Re: Help me plz

You could try using another variable, like:

If: Variable "dead" equals (1),
Go to start.

Maybe.


http://i.cubeupload.com/zZE0XJ.png

Offline

 

#3 2010-11-23 20:39:15

Lab101010
Scratcher
Registered: 2010-10-05
Posts: 9

Re: Help me plz

Thanks maki-tak. actully (dont take this as i dont like any of the other teams or anything but...) i signed up to join team invader zim (i LOVE that show). sorry. just saw your comment right after i signed up. can i switch teams or...

Offline

 

Board footer