Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dragging vertically a sprite - URGENT

Status
Not open for further replies.

Baixinha

Programmer
Dec 27, 2000
122
BR
How can I drag a sprite only vertically?
I need to determine a limite of drag.

 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top