The Daily Click ::. Forums ::. Klik Coding Help ::. Killing a specific person
 

Post Reply  Post Oekaki 
 

Posted By Message

Sumo148

Super amazing fantastic user

Registered
  26/01/2009
Points
  530

360 OwnerThe Cake is a LieVIP MemberPokemon Ball!I am an April FoolI donated an open source projectSanta Hat
28th February, 2009 at 01:05:43 -

I'm making a sniping game, and the person can press a spawn button to create a walking stick figure that walks from the left to the right side of the screen. I also made a detector that always places it ontop of the head, so I can detect if it's a headshot. Now, how would I make it so when I shoot a detector, it only kills that "victim" and not all of them?

 
n/a

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
28th February, 2009 at 01:09:41 -

I believe you need to spread the values in the enemies, so that they all have unique ID's assigned to them. It's not hard to do, although I've still not figured it out properly yet.

 
n/a

Sumo148

Super amazing fantastic user

Registered
  26/01/2009
Points
  530

360 OwnerThe Cake is a LieVIP MemberPokemon Ball!I am an April FoolI donated an open source projectSanta Hat
28th February, 2009 at 01:20:50 -

That's what I was thinking originally, but even after reading the tutorials, I have no clue on how to achieve killing specific stick figures.

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
28th February, 2009 at 01:29:29 -

You may be able to skip that if you do it right... If you add "Detector is overlapping stick figure" into the event where the bullet hits the detector, it should identify which stickman to destroy. Some setups require spreading values, but if you play your cards right you can avoid it sometimes.

Not saying that's best, just that I haven't fiddled with value spreading much.

Edited by OMC

 

  		
  		

Sumo148

Super amazing fantastic user

Registered
  26/01/2009
Points
  530

360 OwnerThe Cake is a LieVIP MemberPokemon Ball!I am an April FoolI donated an open source projectSanta Hat
28th February, 2009 at 01:36:18 -

Wow, It worked OldManClayton! I didn't even need spread values. I just created a small detector on the cross-hairs of my scope and when It overlapped the victim and user presses left mouse, it destroyed it. Now all I have to do I make another detector for the headshots

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
28th February, 2009 at 01:44:32 -

 
 

			
  	    

 

  		
  		

Sumo148

Super amazing fantastic user

Registered
  26/01/2009
Points
  530

360 OwnerThe Cake is a LieVIP MemberPokemon Ball!I am an April FoolI donated an open source projectSanta Hat
28th February, 2009 at 14:00:49 -

Success! I pretty much finished my sniper shootout minigame! I just need to add a dying animation (which I already did but accidentally pressed cancel instead of OK

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
28th February, 2009 at 14:56:43 -

Don'tcha hate it when that happens?

 

  		
  		
   

Post Reply



 



Advertisement

Worth A Click