moving and scaling an image

David Glasgow david at dvglasgow.wanadoo.co.uk
Sat Feb 11 10:32:24 EST 2012


On 10 Feb 2012, at 6:00 pm, Alejandro Tejada wrote:

> Subject: Re: moving and scaling an image
> Reply-To: How to use LiveCode <use-livecode at lists.runrev.com>
> 
> Hi David,
> 
> David Glasgow wrote
>> 
>> Thanks to all the help with this.
>> I ended up with a script that created sequential moves,
>> with an image scale in between each. 
>> I am amazed at how smooth it is.  This is the 'pull towards' script:
>> [snip]
>> 
> 
> Really nice! When i pasted this script in an image,
> it moves smoothly but dowes not change size.
> 
> What I am doing wrong?

The only thing I can think of is that if the location moved to is closer than the step size in the repeat loop, then you won't get the scaling, or only a very little bit.  What happens when you step through in the debugger?

David G


More information about the use-livecode mailing list