What's the best way of scaling a sprite in lingo while keeping the same 
centerpoint, ie 

getting the centerLoc = point(s.rect[3] - s.rect[1], s.rect[4] - 
s.rect[2])

Then doing the division against the sprites height/width, ie 
scW = integer(s.width * .80) * .5
scH = integer(s.height * .80) * .5

Then taking half that for each centerpoint, ie

s.rect = rect(centerLoc.locH - scw, centerLoc.locV - scH, centerLoc.locH + 
scW, centerLoc.locV + scH)


?

[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!]

Reply via email to