Gravity

Game Editor comments and discussion.

Gravity

Postby Twon » Tue Apr 10, 2007 9:23 pm

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.........
Twon
 
Posts: 1
Joined: Mon Apr 09, 2007 8:03 pm
Location: laurens S.C.
Score: 0 Give a positive score

Here.

Postby Hblade » Tue Apr 10, 2007 9:31 pm

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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Postby Sgt. Sparky » Tue Apr 10, 2007 9:44 pm

erm,
just use
Code: Select all
angle = direction(x, y, theotheractor.x, theotheractor.y);
directional_velocity = 3;
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron