Hey!
I am making a shooter that invovles a little ship shooting aliens. I am right now working on upgrades for the ship and one of the upgrades that i want to include is a little automatic turret that helps the ship shoot aliens. I have ran into a slight problem tho.
I created a text that is going to work as a button to buy the turret and made the ship into a container for the turret. All of that works fine, but when i click the button it just spawns a second ship and a third if i click again and so on. They do have the turrets on their backs, but i dont want multiple ships flying around.
<img src="http://s928.photobucket.com/user/marcusengman/media/Problem_zps2a83f3d9.jpglfilters%5buser%5d=137928730&filters%5brecent%5d=1&sort=1&o=0" border="0" />
These are the events that i am using for the it all to work.