Hello,
I tried to make my own simple gravity code but the player is jumping up and down
when I try to climb up a steep cliff.
Has someone got a simple gravity code for me?
Code:
vec_set(temp.x,my.x);
temp.z-=1000;
result=c_trace(my.x,temp.x,IGNORE_ME|IGNORE_PASSABLE|
IGNORE_PASSENTS|IGNORE_SPRITES|USE_BOX);
if(result>30){my.z-=5*time;}else{my.z-=(0.5*result);}