sorry cant post code at this stage but can show structure of code
aura = {]
aura.newImage = function(arg)
img = {}
img = display.newImage( arg )
img:move( arg1, arg2 )
img:up(arg1)
img:down(arg1)
img:clean()
img:start()
return img
i need the runtime to be tide to the img this way each img returned has its own runtime
example of how this works
aura = require( "aura" ) -- requires the module
image1 = aura.newImage( {"pic1.png"} ) -- creates the image
image2 = aura.newImage( {"pic2.png"} ) -- a second image
image1:up(4) -- sets the direction and speed to move
image2:down(7) -- direction and speed of second image
image1:start() -- starts image1 animation
--then when done using image1 i can
image1:clean() --removes images from memory
image2:start() -- starts image2 animation
but the code kicks out an error cause the runtime from image1 is still there
the code in OP bg:start() is code in img:start() above
code in OP bg:pause() is img:clean() above but without the image remove code in it
hope this helps you picture the flow of the code [import]uid: 7911 topic_id: 21191 reply_id: 84112[/import]