Scale To

Description

The Scale By behavior will scale your object by a certain percentage. The default scale of an object is 100% returns the scale percentage of the selected object. 

This behavior will trigger an event on completion.

Note: This will also scale the collision shape of the object. If your scale has a duration greater than 0, the collision shape will be removed and then added again with the new size when it is done scaling. This means your object will not be collidable while it is scaling.

Properties

Object A

This is the object that will be scaled. By default the current object is selected, but you can tap the graphic and choose any other object in your scene.

Transition

The effect used for the motion tween animation if the duration is greater than 0.

Scale X

Scale an object to the specified percentage along the X Axis (horizontally). This replaces the current scale oft he object with the new scale.

Eg. Scaling to 25% will make your object scale be 25% wide. 

Scale Y

Scale an object to a specified percentage along the Y axis (vertically). This replaces the current scale oft he object with the new scale.

Eg. Scaling to 25% will make your object scale be 25% tall.

 

Duration

How long it will take for the object to scale to the new size.

Outputs

This behavior has no outputs.

 

Examples

If you want your object to be 200% wide and 200% tall. If you execute the behavior again, it will not make the object larger (unless you scaled down the object since the first time the behavour was executed). 

Related

Get Scale

Scale By

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk