Page 1 of 1

making actors like magnets

PostPosted: Tue Nov 07, 2006 1:34 am
by Sgt. Sparky
yo! i was wondering on how i could make an actor like a magnent, lke have multiple magnets to make a magnet game, and... am i using the word magnet to much? well, any ways, i was wondering if ya knew.

PostPosted: Wed Nov 08, 2006 12:53 am
by Fuzzy
In what way would they resemble(act like) magnets?

PostPosted: Wed Nov 08, 2006 3:24 pm
by Sgt. Sparky
you may know the game on arcadetown.com called death star
the goal is to aim and shoot down ur oponent but there are all these stars an' stuff that act like magnets for your shots so, could you tell me how to make actors like magnets(stars) please? :(

PostPosted: Wed Nov 08, 2006 10:06 pm
by Game A Gogo
check the GE gravity war in the demo section of game-editor site

PostPosted: Wed Nov 08, 2006 11:01 pm
by Sgt. Sparky
sorry, no can do :( . all the demos do not work on my comp :cry: , there is always one, only one file that will not work :evil: . :) could you post the script here though? :D

PostPosted: Wed Nov 08, 2006 11:29 pm
by DilloDude
My preference for gravity script is to use the ReDir function to change the angle, and then write another function using getangle to change the velocity. Use a modification of ReDir so you don't have to calculate getangle twice. If you need more help I'll try post more later.
Find functions at http://game-editor.com/forum/tp-2629-Ra ... oblem.html