Move and zoom at same time?

Find quick help here to get you started with Hollywood
Post Reply
Bugala
Posts: 1178
Joined: Sun Feb 14, 2010 7:11 pm

Move and zoom at same time?

Post by Bugala »

What I want to happen is that I have layer of size 200x200 on x=1, y=1.

Then I want it to move to location x=1000, y=1000 and change its size to 100x100 along the way.

I can use command "MoveLayer" to move it nice and smooth, but is it possible to also at same time have it change its size when it moves towards its target, or do I have to code it myself to make it do it?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Move and zoom at same time?

Post by airsoftsoftwair »

You can use SetLayerStyle() to apply multiple property changes at once.
Bugala
Posts: 1178
Joined: Sun Feb 14, 2010 7:11 pm

Re: Move and zoom at same time?

Post by Bugala »

Thanks from answer, but what i was after is that by using MoveLayer, i only need to write one line of code and get nice smooth movement from one place to another, while using setlayerstyle, i already need to make a loop.

What I meant to ask is if there is some way to move and zoom at same time, without needing to use a loop.

But anyway, even that setlayerstyle already helps, for it didnt occur to my mind before that i could use that to do it if i have to use loop.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Move and zoom at same time?

Post by airsoftsoftwair »

Bugala wrote:What I meant to ask is if there is some way to move and zoom at same time, without needing to use a loop.
Oh well, that's not possible I'm afraid. Use a loop.
Post Reply