Few different ways (sorry for late reply, was on my honeymoon)
you can set a constraint for horizontal and vertival movement, or to an area of the screen.
set this code is from Lingo dictionary and changed for vertical movement
set the locV of sprite 1 to constrainV(2, the mouseV)
also see constrainH and constraint for variations on this.
This will only let the sprite move within the sprite in sprite channel 2.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.