Can't shoot again after destroying bullet actor
TouchTiltGames
Member Posts: 1,162
I have a Cancel button that destroys a bullet actor when pressed if the bullet is spawned (in the air). This is working great but I can't shoot again after that, how do I go about resetting the ability to shoot again? This is what I have:
Cancel Button:
touch is pressed and game.bulletalive = 1
Change attribute game.bulletalive To: 0
On the Bullet:
Change Attribute: game.bulletalive To: 1
When game.bulletalive = 0
destroy this actor
Thanks in advance
Cancel Button:
touch is pressed and game.bulletalive = 1
Change attribute game.bulletalive To: 0
On the Bullet:
Change Attribute: game.bulletalive To: 1
When game.bulletalive = 0
destroy this actor
Thanks in advance
Comments
You probably have the attribute game.bulletalive affecting the ability to spawn (I'm guessing), so when the cancel button changes that it affects the ability for a bullet to spawn.