2

Not sure if that's the right name for it, but I'm looking for a way to implement zooming in my game.

Essentially the game should zoom in on my character during the moving and shooting phase (its like Worms), but zoom out when the character has shot (preferably by following the shot, like Angry Birds does).

Can Corona/Lua do something like this?

Cleverbird
  • 31
  • 3

2 Answers2

1

I think you can attach everything to the same group and then scale that group: http://docs.coronalabs.com/api/library/display/newGroup.html

jhocking
  • 15,786
  • 2
  • 43
  • 59
0

Actually, you can do it with scaling all images on the stage. It's like scaling all display objects include physics and/or non-physics objects.

You can check out xScale, yScale features from CoronaLabs website. Also, you should be careful about the reference points of the objects. Cause of, scaling depends on the reference point of the object that you scale.

If there are more specific questions in your mind about these usages, then please comment.

ersentekin
  • 101
  • 1