creating new objects when needed

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.
minkzilla
Prole
Posts: 7
Joined: Sun Apr 27, 2014 4:08 pm

Re: creating new objects when needed

Post by minkzilla »

I must be doing something wrong still. after you said this I looked at my code for a good hour, and changed things around but I could not get it to work. Thanks for all your help so far, but if you could take a look at this code and help me out that would be great. thanks!
Attachments
main.lua
(1.1 KiB) Downloaded 98 times
User avatar
szmol96
Citizen
Posts: 51
Joined: Mon Oct 07, 2013 4:24 pm
Location: Horvátkút, Hungary

Re: creating new objects when needed

Post by szmol96 »

The problem was that you had the enemies table inside love.update, which caused it to become empty every cycle.
Here is your fixed .love file.
Attachments
main.love
(551 Bytes) Downloaded 100 times
All your code are belong to us.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 229 guests