Page 1 of 1

Gravity for actor

PostPosted: Wed Jan 18, 2006 4:32 pm
by Troodon
Can I make gravity to an actor. I don't mean gravity to x or y axels. I mean gravity to another actor. I hope somebody understand. ( :wink: I don't speak very well english.)

PostPosted: Wed Jan 18, 2006 8:33 pm
by Game A Gogo
yeah, whit the yvelocity and xvelocity var in the script editor.

PostPosted: Thu Jan 19, 2006 2:58 pm
by Troodon
I tried. How?

PostPosted: Thu Jan 19, 2006 10:49 pm
by Joshua Worth
Can u give an example of what you are doing?

PostPosted: Fri Jan 20, 2006 1:49 pm
by Troodon
This is my actor : :x
This is my "gravity actor": :idea:

When the game begins, :x "falls" towards :idea: .

When :idea: moves, :x still falls towards :idea:

PostPosted: Fri Jan 20, 2006 1:50 pm
by Troodon
...I can do it also with <move to> event. :oops:
Sorry

PostPosted: Thu Feb 02, 2006 1:10 pm
by duracel92
i suppose you could do it by the buttons you press... IE

(events>keydown>scripteditor>x = x + 5;)
you can change the the x with y (axis) 5 with any other integer (speed) and + can be changed to -, you probably have to do it on both actors..