Page 1 of 1
Collision and Gravity Not Working

Posted:
Sun Nov 04, 2007 6:39 am
by Super Pieman
I have added gravity to my character (Mario), and a collision physical response event with the ground. But for some reason Mario keeps on falling through the ground.
Re: Collision and Gravity Not Working

Posted:
Sun Nov 04, 2007 7:22 am
by Fuzzy
Two things can cause that. one is that the actors overlap before the fall starts, and an excessive rate of falling.
Re: Collision and Gravity Not Working

Posted:
Sun Nov 04, 2007 12:12 pm
by Kalladdolf
make sure that on the collision event, REPEAT is set on YES.
Re: Collision and Gravity Not Working

Posted:
Sun Nov 04, 2007 2:45 pm
by Super Pieman
It still doesnt work...
- Code: Select all
yvelocity=yvelocity+5;
That is for gravity.
and for collision i have set only event actor to 0.
Re: Collision and Gravity Not Working

Posted:
Sun Nov 04, 2007 8:30 pm
by Rux
Try this
- Code: Select all
yvelocity = yvelocity + .5;
You need to have a point before the 5. But I don't think it'll solve anything.
Re: Collision and Gravity Not Working

Posted:
Sun Nov 04, 2007 10:44 pm
by Super Pieman
Thank you rux, that solved everything. How do I give you a point?
Re: Collision and Gravity Not Working

Posted:
Mon Nov 05, 2007 6:08 am
by Rux
Look under my avatar, there is a + sign. Click it.