Quantcast
Channel: CoderzHeaven » End Runtime
Browsing all 3 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to set a tilt based gravity using Corona accelerometer ?

Hi, For setting a tilt based gravity using Corona Accelerometer, use the following sample of code. local function urTiltFunc( event ) physics.setGravity( 10 * event.xGravity, -10 * event.yGravity ) end...

View Article



Image may be NSFW.
Clik here to view.

How to get the elapsed time after app launch in Corona ?

In order to get the elapsed time after the application launch in Corona, use the following lines of code, function elapsedTimeCalc( event ) print ("Time elapsed since app launch---"..event.time/1000 )...

View Article

Image may be NSFW.
Clik here to view.

How to receive memory warning in Corona ?

In order to receive memory warning in Corona, use the following chunk of code, local function memoryWarningCheck ( event ) print( "Memory Warning ! Memory is leaking somewhere! " ) end...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images