Pages: 1
Topic closed
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
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.
Offline
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
Offline
It looks like this is a duplicate of this topic - let's keep the discussion there so people don't get confused.
Offline
Topic closed
Pages: 1