Auto-size?

At 12:18 PM +1200 9/4/01, Sean Wilson wrote:
>  > What does one need to control in order to keep the entire image
>>  of a sprite
>>  whose "viewscale" is being changed?  As it is, I am getting
>>  clipping as the
>>  "viewscale" gets beyond the bounds of the original sprite.
>>
>>  This is being used in an animation that combines with rotation
>>  and movement.
>>  Any suggestions on how to implement the control, mentioned above,
>>  over time?
>
>Depends, to a degree, what type of member the sprite is referring to, but a
>first approach might be:
>(in your exitFrame/animation handler)
>tRect = sprite(tTarget).rect
>tRect[1] = tRect[1] - 1
>tRect[2] = tRect[2] - 1
>tRect[3] = tRect[3] + 1
>tRect[4] = tRect[4] + 1
>sprite(tTarget).rect = tRect
>
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/LUJ/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!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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