开发者

Move Scene in corona

I am new to corona and my Problem id I hav开发者_高级运维e a long scene and in that I have a ball body. When it moves up i want to move the scene up. How to do this in Corona.


This is done using a display group to contain your entire scene (the level, the ball, everything) and then move that display group. Physics in Corona don't work between display groups for this very reason, so that that you can move the scene without affecting physics inside the scene. Refer to the "Egg Breaker" sample project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜