The Daily Click ::. Forums ::. Klik Coding Help ::. Collisions on certain areas of an object
 

Post Reply  Post Oekaki 
 

Posted By Message

Greasy



Registered
  15/02/2005
Points
  322
17th July, 2005 at 03:16:28 -

I need to make it so You will get hurt if you dont land on top of the object, but if you land on top of him he dies. I tried a couple things, is there an extension that has advanced collisions or something.

 
n/a

Greasy



Registered
  15/02/2005
Points
  322
17th July, 2005 at 03:21:24 -

I just tried using the collision object but I dont know how it works.

 
n/a

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  48487

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
17th July, 2005 at 10:28:03 -

Um, can't you just do something like:

Animation Falling is playing + player overlaps enemy: Kill enemy
>negate< Animation Falling is playing + player overlaps enemy: die! DIE! DIEEEE!!!!!

Or something.

 
n/a

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
17th July, 2005 at 23:16:54 -

Circy, that means that the guy would kill the enemy just by accidentally jumping on the enemy's toe. But then again, you've got more experience in the genre.

You could add an extra condition that the character has to be a certain Y above the enemy just to be save.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
18th July, 2005 at 02:35:42 -

You could also use an invisible detector that is always placed below your character. If this detector collides with an enemy, kill the enemy. If the player collides with an enemy, hurt your player.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
18th July, 2005 at 12:01:45 -

"that means that the guy would kill the enemy just by accidentally jumping on the enemy's toe."

not if fine detection was turned off too.

 
.
   

Post Reply



 



Advertisement

Worth A Click