Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
HZence
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location:
Posted: 24th Mar 2003 04:32 Edited at: 24th Mar 2003 04:36
I'm having a major problem with this, probably because of the way i do collision. Basically I have a level that looks like this (don't mind me using text to give you an idea):

------------------------------------------------|(EMPTYSPACE)|--------------
------------------------------------------------|(EMPTYSPACE)|--------------
|
|
|
|
|
|
|
|
|
----------------------------------------------------------------------------
----------------------------------------------------------------------------

Here's my code:



I'm almost positive it's because of the way I did the collision, but argh, I just don't know of a more efficient way to do it! All I'm using for the level is a BMP. I have no clue how I would even begin to go about creating a map editor and load and read map files for collision (maybe i'm just not a creative enough programmer ). So I have no idea how to make him jump, except that I would make it that when you press control his Y coordinate is subtracted from until he reachs a certain point, in which case his Y coordinate would be added to until he reaches ground level.

So does anybody know how to solve my problem...no wait, better yet, does anybody know of any 2D DBPro tutorials???? Thank you

Login to post a reply

Server time is: 2026-07-11 08:46:49
Your offset time is: 2026-07-11 08:46:49