Hi, I was wondering is anyone could help me out. I'm trying to program Mario as my final for my comp sci. class. I'm not working about the actual Sprites now, just the basics, ie, moving, jumping and collisions. I'm stumped on the jumping part. Is there a good way to make him jump while retaining his x Velocity, and moving in a smooth arc?
llemes4011
31
Posting Whiz in Training
Recommended Answers
Jump to PostHold x velocity constant, set an initial upwards y velocity (depending on how hard he jumps). In each time interval reduce the y velocity by a fixed small amount (modelling the effect of gravity). As the y velocity reduces to zero then goes negative he will follow an inverted parabola, …
Jump to PostOut of curiosity, what are you using for this project (as far as GUI package)? Java 3d?
Jump to PostI meant GUI package as in graphics package, OpenGL being an example of one, java 3d being another
All 9 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
llemes4011
31
Posting Whiz in Training
BestJewSinceJC
700
Posting Maven
llemes4011
31
Posting Whiz in Training
BestJewSinceJC
700
Posting Maven
llemes4011
31
Posting Whiz in Training
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
BestJewSinceJC
700
Posting Maven
llemes4011
31
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.