Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
I'm thinking you just need to scale the images on the screen to zoom in. – Joey Green Dec 18 '12 at 14:53
This sort of thing has been asked before. – Anko Mar 1 '13 at 16:39
Doing this in Corona is a different problem than doing this in, say, OpenGL. – jhocking Aug 29 '13 at 12:19

I think you can attach everything to the same group and then scale that group:

share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.