2
\$\begingroup\$

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?

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

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

| improve this answer | |
\$\endgroup\$
0
\$\begingroup\$

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.

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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