Page 1 of 1

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

Posted: Tue May 29, 2018 8:12 pm
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!