- Code: Select all
yvelocity+=1+max(0, min(yvelocity, 10));
but no matter what code I try, he always vanishes in 1 frame DX... I even tried this
- Code: Select all
yvelocity+=max(.3, min(.3, .3));
O-o
EDIT:
got him to stop vanishing, but now he stays at a velocity of 10
- Code: Select all
yvelocity+=.3;
yvelocity=max(10, min(yvelocity, -12));
^^