The Daily Click ::. Forums ::. Klik Coding Help ::. Custom Platform Movement Question I have
 

Post Reply  Post Oekaki 
 

Posted By Message

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
31st January, 2006 at 00:50:33 -

Okay, so I'm finally trying to make my own custom platform movement for an object, and I'll agree with the general consensus so far that it has the potential to be very flexible and great, but I have a question about the detectors that go around it. Right now I have 4 separate detectors, 3 pixels in width, that are always set to hover above the head, at the feet, and the left and right sides. Well, is there an easy way to code for the "head" detector for when the guy is crouched down? Obviously, if a bullet or whatever were to fly towards the player and he ducked it might still hit the invisible top detector and register a hit, even though he's crouching down and should avoid the bullet.

Is it as easy as "if collision between guy and bullet / and guy is not ducking = register a hit"?

How do those who have done custom movements before deal with this and similar problems?

Thank you!

P.S: I really like the platform movement used in Lyle in Cube Sector. How tough would it be to try and make your own movement similar to that game, only using a sprite of about the same width and 2x as tall? If the sprite's dimensions aren't square-like is it much harder to code?


 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
31st January, 2006 at 18:53:22 -

Use another detector specifically for handling bullet hits. Just give it two animations, one for when dude's standing (Big Oval or something) and one for crouching (small oval)

 
Craps, I'm an old man!
   

Post Reply



 



Advertisement

Worth A Click