thanks but that wont work for what i need im not trying to pause something ( i know i used pause in the function name ) what i need is the runtime removed [import]uid: 7911 topic_id: 21191 reply_id: 84105[/import]
i dont think that will work either
what im doing is i have a class where i can do this
img = aura.newImage({pic.png})
then
img:up(4)
img:start()
the img:start() function calls the method posted above which
starts the movement where i problem comes in at is when i try to release the memory by removing img the runtime kicks out an error cause its not removed first [import]uid: 7911 topic_id: 21191 reply_id: 84110[/import]
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]