GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

limiting Bullets?

memski425memski425 Posts: 19Member
edited August 2012 in Working with GS (Mac)
Hello,
I followed tshirtbooths tutorial on recycling bullet which was really great. However, is there a way to limit the number of bullets spawned? In tshirtbooths tut, the bullets went really fast when rapidly pressing the actor.

Comments

  • UtopianGamesUtopianGames Posts: 5,686Member
    edited August 2012
    You can make a game.bulletcount integer and have it count +1 every time a bullet is spawned then add in a rule with the spawner if game.bulletcount < (your required bullets).

    You can also reset the bulletcount to 0 if you want to cycle through again.

    Darren.
This discussion has been closed.