Spawn actor after one actor gets destroyed?
izzydogham
Member Posts: 24
So when the user shoots a bubble with the cannon i have a machine gun activate for 15 seconds, after 15 seconds the machine gun gets destroyed (Using a timer). Essentially the machine gun is a special power up. But after the machine gun gets destroyed i want to spawn back the cannon back to its original position. Anyone know how i can do this?
Comments
I'd create a game attribute called "machinegun" set to 0. When something happens (your case) change machinegun to 1. Make the regular cannon to change its image when the machinegun attribute is 1 and make the special bullets spawn from this actor when again this attrbiute is 1. If game.machinegun = 1 > timer after 15 seconds change it back to 0.