Im confused as to how I should approach creating a game object every few seconds. I am using the following code
function init(self) self.timer = 2 end function update(self, dt) self.timer = self.timer - dt if self.timer < 0 then factory.create("#factory") self.timer = 2 end end
Im also confused as too how I should add a sprite to it. I looked through the Manual and the carrot example. Any help is appreciated. Thanks.