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

#1 2012-06-30 08:49:53

suben380
New Scratcher
Registered: 2012-06-22
Posts: 10

I NEED HELP! How Do I Fix This? (Both characters lose health...)

So my problem is that when the other ball shoots the other ball both balls lose health! How can I fix this? I know WHY this is happening, but I dont know how to fix it!
The "laser" is a part of the character.

THE SCRIPTS:
REDBALL (The Bot)
http://i46.tinypic.com/14vfnl.png

BLUEBALL (The Player)
http://i47.tinypic.com/2d1wh0k.png

Offline

 

#2 2012-06-30 08:55:15

suben380
New Scratcher
Registered: 2012-06-22
Posts: 10

Re: I NEED HELP! How Do I Fix This? (Both characters lose health...)

whenf gf clicked
repeat until <(timer) > [10] >
go to [my-post v]
end
think [Just testing this scratch blocks thing, while waiting for answers!] for (3) secs

Offline

 

#3 2012-06-30 09:00:17

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: I NEED HELP! How Do I Fix This? (Both characters lose health...)

suben380 wrote:

whenf gf clicked
repeat until <(timer) > [10] >
go to [my-post v]
end
think [Just testing this scratch blocks thing, while waiting for answers!] for (3) secs

Please do not spam the Scratch Blocks. Do so in the official topic in Help With Scripts.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#4 2012-06-30 09:27:32

suben380
New Scratcher
Registered: 2012-06-22
Posts: 10

Re: I NEED HELP! How Do I Fix This? (Both characters lose health...)

Oh sorry, I did not know about that!

Back to topic. Any help?

Offline

 

#5 2012-06-30 09:30:30

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: I NEED HELP! How Do I Fix This? (Both characters lose health...)

How about uploading the project? I'm busy with my collab now so I can't help as yet.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#6 2012-06-30 11:59:12

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: I NEED HELP! How Do I Fix This? (Both characters lose health...)

I'll move this over to the Help with Scripts forum, where you might find a bit more help.  smile

Offline

 

#7 2012-06-30 12:57:12

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: I NEED HELP! How Do I Fix This? (Both characters lose health...)

try doing

 
forever
if <<touching [red v]?> and <(costume #) = (whatever costume is the one with the laser on)>>
change [reds health v] by (-1)
end


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#8 2012-06-30 13:34:02

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: I NEED HELP! How Do I Fix This? (Both characters lose health...)

You have the script that says if the red ball is touching the blue, the blue should decrease health. But then, you also say that if the blue ball is touching red, the red should decrease health. So if they touch each other, the both lose health.  smile


Hai.

Offline

 

Board footer