View Single Post
minmay

JCF Member

Joined: Aug 2002

Posts: 1,184

minmay is immeasurably awesomeminmay is immeasurably awesomeminmay is immeasurably awesomeminmay is immeasurably awesomeminmay is immeasurably awesome

Nov 27, 2013, 11:27 AM
minmay is offline
Reply With Quote
Quote:
Originally Posted by szmol96 View Post
I didn't mean "jumped and landed", just jumped. For example, Spaz doesn't need to reach the ground to perform his double-jump.
I know. The method I described is for detecting whether or not they just jumped. If they're on the ground, they didn't just jump. Once they leave the ground, you can check ySpeed to see if they actually jumped or just walked off a cliff, etc. Obviously there are further details (players aren't 1 pixel thick etc; you wouldn't actually want to use jjMaskedPixel, because of platforms and such) but surely you can figure those out.

I'm also confused as to what you intend to do with this information in the first place...