I would really like to know what Im doing wrong - I am trying
to make a game for a uni assignment where you put shapes onto other
shapes - kind of like a jigsaw - have used the script: sprite(a) .
the constraint of sprite b - but I can't work out why 'a'
wont stick to 'b' please help!
I think the constraint function only works with sprites
"moveable" property. Any more sophisticated sprite
changing the loc with lingo would require you to 'clip' the
some rect functions might help...
Here's an (untested) example using the rect of sprite 2 to
regpoint of sprite 3
repeat while stillDown()
H = min(sprite(2).right(max (sprite(2).left, mouseH())
V = min(sprite(2).bottom(max (sprite(2).top, mouseV())
sprite(3).loc = point(H, V)