Divebombing foes, more collision stuff
Posted: Mon Jul 30, 2012 1:02 am
Now that I've figured out how to make my bullets and enemies mutually remove themselves from the world I've decided to try the same thing with my new divebombing enemy type (which looks a tad like Pac-Man cosplaying as Wolverine) and and the player.
Main question: Why isn't my collision working? All I get out of this (in ship.lua) is that now killing one enemy will also also kill another enemy next to the first enemy, which doesn't seem right, and they still can't kill the player's ship. Could someone please explain for future reference why my current code doesn't remove player and enemy? The code is the same it's just the targets that are different.
Secondary question: I want the divebomber enemies to zig-zag as they falls. Easiest way to do this?
Main question: Why isn't my collision working? All I get out of this (in ship.lua) is that now killing one enemy will also also kill another enemy next to the first enemy, which doesn't seem right, and they still can't kill the player's ship. Could someone please explain for future reference why my current code doesn't remove player and enemy? The code is the same it's just the targets that are different.
Secondary question: I want the divebomber enemies to zig-zag as they falls. Easiest way to do this?