Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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
1  
I'm thinking you just need to scale the images on the screen to zoom in. –  Joey Green Dec 18 '12 at 14:53
3  
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
add comment

2 Answers

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

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.