There should be a way where if one had an physics object, and he wanted to make it smaller, the physics body would change along with the image. [import]uid: 66117 topic_id: 17391 reply_id: 317391[/import]
Hi Joe Kool,
There is a function object:scale( )
http://developer.anscamobile.com/reference/index/objectscale
Objects such as background, graphics, can be scaled.
It seems someone has indicated it is better to increase or decrease by the power of 2 (ie 2.0 or .5)
Play with it and have some fun.
There is also a “Dynamic Content Scaling” that adjusts your screen to the device screen. (works by settings in your config file)
See this information on config and build.settings
http://developer.anscamobile.com/content/configuring-projects
Thanks
Ed
opps, I missed the point, you want the physics object and graphic to change size during the executuion) You might want to see,
FatFreddy" in the apple store, written in Corona SDK, there is a 4 part tutorial; http://www.cutemachine.com/product-creation/how-to-set-up-corona-to-build-your-first-ios-or-android-app/ website of Joe Meenen. Best Wishes. [import]uid: 8102 topic_id: 17391 reply_id: 66117[/import]
Joe Kool,
The 4th Tutorial has the complete code & resources for the tutorial in a zip file.
in the main.lua file lines 499 to 513 are show how Joe handles the growth or shrinkage of his player, fatfreedy.
the 4th part link is:
http://www.cutemachine.com/corona-sdk-tutorial/a-complete-game-made-with-corona-sdk-tutorial-part-4/
Thanks
Ed
[import]uid: 8102 topic_id: 17391 reply_id: 66143[/import]