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.

DarkBASIC Discussion / 2D Sidescroller with gravity problems...

Author
Message
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 10th Jan 2005 07:52
I've writen part of a sidescroller using Emperor Baal's tutorial for sprite collision (which, thankfully, included gravity/jumping), but there are a few problems that I can't seem to fix.

The problems I am experiencing are as follow:
- whenever the character touches the side of a platform, it automaticly jums to the top of the platform
- whenever the character reaches the edge of the platform, it drop straight to the platform below at an alarming rate
- whenever it jumps off the edge of a platform it goes up like its supposed to, but when it goes down it reaches a certain point and starts to acend once again and keeps repeating the process until it touches the platform it jumps off of again.

if anyone can figure out why the code is causing this and maybe sugest a solution for the problem, it would be greatly appreciated

Dragael Software
Current Project: Nothing worth mentioning

Login to post a reply

Server time is: 2025-05-24 19:14:04
Your offset time is: 2025-05-24 19:14:04