jumping character

Forum for J2ME mobile games related topics including programming doubts, books and other resources for J2ME game development

jumping character

Postby rahul7star » Thu Jul 17, 2008 2:40 pm

HI
how to make a player jump in a game...........can you provides me the code(any link... )
thanks
rahul7star
Regular User
 
Posts: 84
Joined: Fri Aug 17, 2007 11:22 am

Re: jumping character

Postby DevelopmentTeam » Fri Jul 18, 2008 4:08 am

I guess you want to make the character jump like in mario.

1) We usually make the animation sprite as if the player is up from the baseline mark during the jumping sequence. This case will help you in simple games like straight platform game with no climb ups and downs.

2) In this case if you have a platform with climb ups and downs like Prince of Persia, you need to implement a x-axis and y-axis acceleration to form a parabolic curve.
User avatar
DevelopmentTeam
Site Admin
 
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India

Re: jumping character

Postby rahul7star » Mon Jul 21, 2008 10:20 am

thanks i got the logic and impemented also
rahul7star
Regular User
 
Posts: 84
Joined: Fri Aug 17, 2007 11:22 am

Re: jumping character

Postby DevelopmentTeam » Mon Jul 21, 2008 10:45 am

Nice about that. Happy Coding... :D
User avatar
DevelopmentTeam
Site Admin
 
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India


Return to J2ME Games

Who is online

Users browsing this forum: No registered users and 2 guests

cron