Page 1 of 1

Gravity

PostPosted: Tue Apr 10, 2007 9:23 pm
by Twon
I am new to this. all I want to know is how to make an object attract another object. "developing game based in space". an also make some friends.........

Here.

PostPosted: Tue Apr 10, 2007 9:31 pm
by Hblade
Here. Put this in te draw actor event. yvelocity = yvelocity + 0.04; Then, put this in the collision event with the ground, from the character.
yvelocity = 0; If not, then put this. Physical Response, set the bottom beootom biottom bottom 2 to 0.

PostPosted: Tue Apr 10, 2007 9:44 pm
by Sgt. Sparky
erm,
just use
Code: Select all
angle = direction(x, y, theotheractor.x, theotheractor.y);
directional_velocity = 3;