Transform go or sprite (SOLVED)

Hi all.

I can transform go or sprite? I want change scale for part of sprite.

Thank you for answer.

Sprites have a scale that can be manipulated run-time: http://www.defold.com/ref/sprite/#scale You can also scale the entire game object using go.set_scale() and animate using go.animate()

2 Likes

You can scale game objects individually. See http://www.defold.com/ref/go/#go.set_scale

The best way is to put the sprites that you want do scale independently of each other in separate game objects. If you have a group of game objects that you want do move in unison it may be a good idea to parent-child them together.

See “Childing game objects” in the Building blocks manual: http://www.defold.com/manuals/building-blocks/

2 Likes

Thank you for answer.

I try you solutions.