Here is the code
spawner = function (event) cat = { image = "cat.png" } cat2 = { image = "cat2.png" } end timer.perfomWithDelay(1000,spawner)
When I remove the bottom line “timer.perfomWithDelay(1000,spawner)” it works but I need to be able to delay it.