123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|541|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> Prevent cushioned landing?

Wed, 23 Jun 2010, 15:00
spinal
I'm using the following couple of lines to make my sprite fall. However, when a platform is detected and the sprit_vy is reset, the sprite will usually cushion the landing. This happens whenever the detected platform is more than one pixel below the sprite, basically the sprites stops falling then falls again so it looks like the sprite is slowing down rather than stopping dead like it should.



What am I doing wrong?

-=-=-
Check out my excellent homepage!
Wed, 23 Jun 2010, 15:18
Jayenkai
When floor<=playerY+Speed, Speed=0, AND PlayerY=Floor

Magno-boot the sucker to the floor!

-=-=-
''Load, Next List!''
Wed, 23 Jun 2010, 15:33
spinal
silly me!