I’m assuming that the problem is you get only one bubble - I haven’t tested your code, and you didn’t say how it doesn’t work.
First thing I notice is that it’s not set to spawn after 1 second, but 1 millisecond. Secondly, you haven’t specified the number of iterations (0 for infinite) so it will only spawn once.
I’m also assuming that diplay.newImage is a forum typo as it should be display.newImage.
To spawn an infinite number of bubbles once per second:
[lua]timer.performWithDelay( 1000, spawnBubble, 0)[/lua]
To spawn 25 bubbles once per second:
[lua]timer.performWithDelay( 1000, spawnBubble, 25)[/lua]
You can read about timer functions and how to cancel them here:
http://developer.anscamobile.com/content/timer-library [import]uid: 11393 topic_id: 5092 reply_id: 16780[/import]