hello, i am making a jigsaw game (i am a newbie), i have made a grid for the
jigsaw pieces to snap onto, this works, but the pieces seem to snap to
whichever grid piece there bottom right corner is in and not the center of
the piece, i have checked the registration point and that is in the center
of the piece. i am baffled!
this is the code i am using to make the pieces snap to the grid pieces
on snapper
repeat with x = 17 to 32
repeat with y = 1 to 16
if sprite x intersects sprite y then
sprite(x).loc = sprite(y).loc
end if
end repeat
end repeat
end snapper
thanks in advnace :)
Mike
_______________
Mike Malinowski
http://www.raynak.com/~mikesnail/test/index.htm
[EMAIL PROTECTED]
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
- Re: <lingo-l> object snapping mike m
- Re: <lingo-l> object snapping Tab Julius
- Re: <lingo-l> object snapping Kerry Thompson
- Re: <lingo-l> object snapping Kurt Griffin