Collision and Gravity Not Working

Non-platform specific questions.

Collision and Gravity Not Working

Postby Super Pieman » Sun Nov 04, 2007 6:39 am

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.
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

Re: Collision and Gravity Not Working

Postby Fuzzy » Sun Nov 04, 2007 7:22 am

Two things can cause that. one is that the actors overlap before the fall starts, and an excessive rate of falling.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: Collision and Gravity Not Working

Postby Kalladdolf » Sun Nov 04, 2007 12:12 pm

make sure that on the collision event, REPEAT is set on YES.
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Collision and Gravity Not Working

Postby Super Pieman » Sun Nov 04, 2007 2:45 pm

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.
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

Re: Collision and Gravity Not Working

Postby Rux » Sun Nov 04, 2007 8:30 pm

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.
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score

Re: Collision and Gravity Not Working

Postby Super Pieman » Sun Nov 04, 2007 10:44 pm

Thank you rux, that solved everything. How do I give you a point?
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

Re: Collision and Gravity Not Working

Postby Rux » Mon Nov 05, 2007 6:08 am

Look under my avatar, there is a + sign. Click it.
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron