The solution to this might actually be quite simple but I can't find it yet. I'd really appreciate it if someone could help me out please
I'm building a vertical 2D shmup and have a player that fires bullets. I set an fsm with get button down (Fire1 with the z key) and a bool test to fire the bullets continuously while z is pressed (once the z key is released it stops firing bullets).
Simple right? Now... I wanna start firing more bullets from other gameobjects along with the player while "z" is being pressed, however I haven't been entirely successful to do this. I've made 4 weapons as items (each use this same fsm), when one of them is collected it gets attached to the player and starts firing bullets along with the player but only until z is pressed again and not while z is being pressed at the moment it was collected. What I mean by this is that when I'm pressing "z" (which is firing the player's bullets) and collect a weapon I have to release the z key and press it again to make the weapon fire its bullets along with the player and that's what is annoying me...
So yeah, I hope this is clear. Is there any way to make those item's bullets start firing automatically when the item is collected instead of having to release the "z" key and press it again in order to make it work? Using get button down for each weapon to start firing it is not proving to be very useful in this situation...