PDA

View Full Version : fridge magnets



age6racer
February 24th, 2004, 05:29 PM
Hello there,

I'm making a little drag and drop thing with fridge magnets, and I want them to react to each other.

you can see it here http://www.bi03.co.uk/bi03mag

ie, if one is dragged over another it wont actually go over it. it'll push it away.

I dont know what this is called so i couldnt look it up on the tutorials part of the site.

Cheers.

Adam
February 24th, 2004, 07:21 PM
You need to begin with hitTest.

http://www.kirupa.com/developer/actionscript/hittest.htm

Adam

T-O
February 24th, 2004, 07:41 PM
first you need to seen if the objects hit do that with hittest:
http://www.kirupa.com/developer/actionscript/hittest.htm
then you would would need somehting to stop the drag when the objects hit, i don't know how to do that.