[solved]How to get enemies to respawn their bullets?

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
Zidbot2000
Prole
Posts: 3
Joined: Sat Jun 25, 2016 10:54 pm

[solved]How to get enemies to respawn their bullets?

Post by Zidbot2000 »

edit: i solved it by realizing i needed to make a variable local. silly me!

First off, I am very amateur so please forgive any odd code.
Secondly, this is old code I recently got back into and still can't fix an old problem that made me quit in the first place. I'm making something akin to a bullet hell, or at the very least with enemies that shoot bullets. The problem is getting the enemies to shoot more bullets after their first time. Here, only one enemy will respawn bullets. However, that's a step up, because a few months ago my game would just freeze upon trying to respawn bullets.
Relevant code is in enemies.lua

Thanks in advance!
Attachments
bhgame.love
(8.94 KiB) Downloaded 119 times
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 44 guests