> It would be tremendously time consuming to to a frame
> by frame animation.
> unfortunately I can�t spare that time.
> Mainly because I want to use many diferent objects.
> But I don�t want the box to change, just the car or
> any object fitted into
> it. I was thinking something in the form of
> a "pinch" filter from photoshop.

If you want a "pinch" effect, instead of just changing the width of the
sprite (for which you can use the "rect" property that was already suggested
by Carl), you might try and experiment with the "quad" function, which gives
you some snazzy (but possibly unpredictable) effects, including perspective.
So you can manipulate the two bottom points to come closer together, and the
two point points to follow them.

put sprite(1).quad
-- [point(178.0000, 62.0000), point(323.0000, 62.0000), point(323.0000,
187.0000), point(178.0000, 187.0000)]

You can change individual quad points,
What you need to do (because of a quirk in Director), is copy the quad into
a list:
plQuad = sprite(spriteNum).quad

then you can change the individual quad points. eg:
plQuad[1] = plQuad[1] + point (100, 0)

and then put the list back into the quad:
sprite(spriteNum).quad = plQuad

To animate the change you'd need to set up a loop function (preferably on
prepareFrame) that increments the changes.

Try experimenting with it and see if you get the right effect. You can also
see more info in the Director's online Lingo Dictionary.


Karina Steffens,
Multimedia Designer/Programmer

Martello Media Ltd.
4 Islington Avenue
Sandycove
Co. Dublin

Tel: +353 1 2844668
Fax: +353 1 2803195
http://www.martellomm.ie




[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