first off i made a variable called "canjump" (actor, integer)
then i made some entries :
Script: player -> Draw Actor
- Code: Select all
yvelocity = + 8;
Script Editor: player -> Key Down (w, Atleast one key is pressed)
- Code: Select all
if(canjump==1)
{
yvelocity=-50; //i have tried lower values here aswell
canjump=0;
}
Script Editor: player -> Collision (Top side of floor2)
- Code: Select all
canjump=1;
does anybody know what i did wrong, or what can produce this choppy bouncy behavior?
thanks!