05-11-2002, 09:26 PM
Quote:....you must connect XD and YD.How?
When you raise or lower XD you must decrase YD from to 0 to get a better effect try it.Also do it with YD.When raising or lowering him you decrase XD to 0.Also you need to work on bouncing of walls.
I think the main thing you need to change is that you need to start keeping track of the player positions using Real values, rather than integers, and then converting them to integers at the last minute before writing to the screen. That way, you can have smaller increments -- for example, accelerate by .2 each keypress, rather than a full 1. It'll make everything a lot smoother, and give you a lot more control over the motion, if you wanted to add wind or gravity or some other such mod.