The Daily Click ::. Forums ::. Klik Coding Help ::. problem with bouncing on enemies
 

Post Reply  Post Oekaki 
 

Posted By Message

hey hey shoe



Registered
  23/05/2003
Points
  65
11th June, 2003 at 14:33:06 -

how do i make a guy bounce off an enemy after jumping on it? (similar to the mario games) when i try doing it the enemy dies but my character just falls through. im using a platform movement...

 
CHES!

EleXor



Registered
  21/01/2003
Points
  269
11th June, 2003 at 17:00:44 -

Hmm this is interesting, if you don't get it working try to set position of Mario up to the enemy or something. I try the bounce thing get working

 
n/a

EleXor



Registered
  21/01/2003
Points
  269
11th June, 2003 at 17:05:13 -

Hmm i tried this too:

I created a square what is in up corner of screen. Its always the same place where player is, so: Player jumps on enemy, destroy, the enemy is destroyed, player looks in the direction of square at 0.0 and set speed to 15 or something. There is surely easier way duh

 
n/a

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
11th June, 2003 at 17:22:33 -

It would be easy with custom movement. That is a reason to use custom movements

 
n/a

BobFromPikeCreek



Registered
  25/08/2002
Points
  288
11th June, 2003 at 18:09:58 -

Yep, all you gotta do is:
*Bottom Tester collides with Enemy
+Jump Counter = 0 (well, with my engine 0 = falling)
=Destroy enemy, add 5 to Jump Counter

 
Image
Image

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
11th June, 2003 at 18:41:07 -

create a counter
make the characters y = to its own y pos + value of counter.

when character collides with floor counter = 0
when counter is above 0 subtract 1 from it (every tenth of a second)
when character collides with enemy - number from it

and perhaps make a detector to go under the character so it will only bounce when falling

 
.
   

Post Reply



 



Advertisement

Worth A Click