intPX is an integer variable holding the X position of the character... That's what I use to move the character when the map isn't scrolling...
Maybe if I had posted this piece of code it would've been easier to understand...
VB Code:
intTmpX = intPX \ 20 intTmpY = intPY \ 20 intTmpY2 = (intPY \ 20) - 1
And I think I just figured out what's wrong with the collision thing, thanks Fox!
When the map is scrolling and the character isn't moving the intPX and intPY doesn't get updated so the intTmpX and intTmpY stays the same...




Reply With Quote