How to tell if actors are in range of eachother?

pxlpfctpxlpfct Member Posts: 37
edited April 2012 in Working with GS (Mac)
Hello! I'm making a platformer where you, play player, have a "magnet gun" and can shoot magnetic charges at walls and objects to get them to attract or repel each other. This is going well except that I only the objects to attract if they are in a certain range of each other. I've tried a bunch of different ways of doing this (having a rule which says that it will only work if x of self is more than x of the magnet collision point + 48 and visa versa, along with the y axis but this didn't work) do any of you know how to do this? This is my game file, its hard to explain what I'm doing to achieve the magnets without the code. Maybe I should redo that too. ah well, here it is: http://www.mediafire.com/?iba5ubu8t14t7mq

Best Answer

Sign In or Register to comment.