The Daily Click ::. Forums ::. Klik Coding Help ::. 2 bullets hitting same object
 

Post Reply  Post Oekaki 
 

Posted By Message

z3lda



Registered
  07/06/2003
Points
  16
13th June, 2003 at 17:21:18 -

I have 2 bullet objects hitting the enemy at the same time, the problem is the score is alwasy caculated twice. Is there a way to caculate score only after the enemy has died and not when the bullet collides with the enemy?

John

 
n/a

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
13th June, 2003 at 17:34:39 -

why can't you simply put the score calculating event on when the enemy dies rather than when the bullet hits?

 
Image

z3lda



Registered
  07/06/2003
Points
  16
13th June, 2003 at 17:39:47 -

why? cause I'm not sure where to put it. This must be real obvious question, but I can't find the answer heh.

John

 
n/a

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
13th June, 2003 at 17:47:47 -

Well do you have energy for the enemy, I mean can it take a few hits then die? Like you'd add 1 to one of it's alterable values every time it's hit, then say for example it can take 5 hits, when the alterable value gets to 5, then the enemy is destroyed, then you do the score adding.

 
Image

z3lda



Registered
  07/06/2003
Points
  16
13th June, 2003 at 17:52:07 -

Cool, I think I get it now...thanks

John

 
n/a

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
13th June, 2003 at 17:53:29 -

s'ok dude.

 
Image
   

Post Reply



 



Advertisement

Worth A Click