Advertisement

should be really easy

Started by January 06, 2003 12:43 PM
0 comments, last by inertiaFreak 21 years, 10 months ago
well..im doing this mario game in CDX...and i cant figure out the code to make my mario jump and LAND??!!?? i used something like this... this is just a pseudocode (upon up arrow ) { for(i=0 to 5) { make the particular frames ''y'' value dec by 1 put a delay } for(i=0 to 5) { inc the frames ''y'' value inc by 1 then again delay } } i really cant think of any other way... call me naive if you like but help me out if you can
[If you can''t hear me, it''s because I''m in parentheses]
Try this article...

http://www.gamedev.net/reference/articles/article694.asp

Its a little heavy on physics, but there is pseudocode for jumping.

NCPar8hd

This topic is closed to new replies.

Advertisement