S
Smenkare
Guest
Hi, i want to be able to jump on the object which makes me "jump" and jump through it. The problem is that my collisions arent precise and my jump is always different because of number of steps which collision was detected. I was trying many ideas and i cant figure it out, using alarm to destroy object which makes me jump after one step doesnt work too. I'll show on the picture what i need.
And this is my collision event
And this is my collision event
Code:
if (oSpear.spearIn == true) && (sPlayer.vsp > 0)
{
var height = y - other.y;
if (height < 0)
{
sPlayer.vsp += - 85;
}
}{/CODE]