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

#1 2012-06-30 09:35:26

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 09:37:41

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

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

Why did you create the same topic again?


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

Offline

 

#3 2012-06-30 09:38:46

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

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

Because the "laser" is part of the character sprite, they are both touching each other. So red is touching blue and blue is touching red. So they both lose health. You need to make the laser a seperate sprite.


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-06-30 10:14:43

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

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

Wes64 wrote:

Because the "laser" is part of the character sprite, they are both touching each other. So red is touching blue and blue is touching red. So they both lose health. You need to make the laser a seperate sprite.

That ^^

Or you use a variable (eg. attacking) and have if touching red and attacking = 0 take damage. Have attacking be set to one when you attack


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

Offline

 

#5 2012-06-30 12:12:48

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

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

It looks like this is a duplicate of this topic - let's keep the discussion there so people don't get confused.  smile


http://i.imgur.com/WBkM2QQ.png

Offline

 

Board footer