S
Smenkare
Guest
Hi i was trying to make gravity acceleration.
This was my idea.
grv = 1;
vsp = vsp + grv;
if (place_meeting(x,y+1,oWall))
{
grv = 1;
}
else
for(i=1; i < 50; i += 1)
{
grv += 0.1 * grv;
}
if (place_meeting(x,y+1,oWall)) && (key_jump)
{
vsp += -120 ;
}
I think i can be retarded, i think about this whole day and i have no idea how to do it. Please be patient with me. I was trying to check if object is on the ground if hes not then gravity will multiply in loop. I couldnt find any thread about gravity acceleration.
This was my idea.
grv = 1;
vsp = vsp + grv;
if (place_meeting(x,y+1,oWall))
{
grv = 1;
}
else
for(i=1; i < 50; i += 1)
{
grv += 0.1 * grv;
}
if (place_meeting(x,y+1,oWall)) && (key_jump)
{
vsp += -120 ;
}
I think i can be retarded, i think about this whole day and i have no idea how to do it. Please be patient with me. I was trying to check if object is on the ground if hes not then gravity will multiply in loop. I couldnt find any thread about gravity acceleration.