moving and scaling an image

Malte Brill revolution at derbrill.de
Thu Feb 9 14:00:14 EST 2012


Hi,

if you want to move and scale at the same time, changing the rectangle property is your friend. You will want to do this in a send in time structure and calculate where the the corner points of your control need to be at the given time. You will want to lock screen before you set the rectangle and unlock it afterwards. For the iPad a frameRate of about 20 to 45 fps can be achieved, depending on how many objects you move and scale at the same time. It is advisable to not use the "best" resizequality option for the image. If you are choosing not to use images, there is room for a little more fps. No true 3d with this, as Ken already said. 

<shamelessPlug>animationEngine handles this task quite effeciently I guess with the aeChangeRect command. You can even let your movement and scaling ease with it. :-) </shamelessPlug>

Cheers,

Malte



More information about the use-livecode mailing list