Respawning enemies?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Benni88
Prole
Posts: 10
Joined: Mon Oct 24, 2011 10:34 am

Respawning enemies?

Post by Benni88 »

Hi guys,

I'm trying to respawn enemies on my map, every time one leaves the level at x = 0. I figured this would be done with a for loop but i'm not sure how to code it. Would there be a way of varying the rate to speed up over time and to continue indefinitely?

Cheers.

(Also, seems to be running when i'm using my Lua editor (Sci-TE) but only shows the love splash when i extract it as a .love.)
Attachments
Benni's Project.love
(3.65 KiB) Downloaded 89 times
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Respawning enemies?

Post by Robin »

Yes and no. You don't need another loop, since everything in love.update and love.draw already is in a loop.
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests