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.
> >...
>
> 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
Or
sprite(tTarget).rect = sprite(tTarget).rect + rect(-1,-1,1,1)
I tangled with this a few days ago using vector sprites and found that
it's important to set the scaleMode of the castmembers themselves (I
don't recall now which worked best, sorry)
--
Carl West [EMAIL PROTECTED]
617.262.8830 x246
"Depend upon it, there comes a time when, for every addition of
knowledge, you forget something that you knew before. It is of the
highest importance, therefore, not to have useless facts elbowing out
the useful ones."
-Sherlock Holmes in 'A Study in Scarlet'
[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!]