I use a code already, but it don't work:
What did I do wrong?On player\draw actor i have this code:and on player\key down space I have
- Code: Select all
if(canyoujump==1)
{
yvelocity-8;
}
if(canyoujump==0)
{
yvelocity-0;
}and on collision I have
- Code: Select all
if(canyoujump==1)
{
yvelocity-8;
canyoujump=0;
}
else
{
yvelocity-0;
}
- Code: Select all
canyoujump=1;
PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_SPECIFIED_MASS, 1.000000, 1.000000, 0.010000, 1.000000);