Replicate actors

I am wanting to create a visual ammo counter that removes a bullet each time the screen is touched. I have Replicated the relevant Actor but I can't see how to get it to remove one each time it registers a touch.

Any help?

Comments

  • DuesDues Member Posts: 1,159

    An easy would be to use the change image behaviour.
    When you touch the button you change image of the "bullets" to how many your attribute says.

    Example,

    In the button

    When touch is pressed, change attribute game.bullets to game.bullets -1

    In the actor that shows the bullets

    Eg. When attribute game.bullets=3
    Change image to "three bullets"
    And then do the same for every picture

    Hope that helps :)

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    This should help :) (just which out the number of lives to the number of bullets) Good luck on your game :) !

    Link:

  • GigabyteGamesGigabyteGames Member Posts: 10

    That did the job, thanks guys, much appreciated :)

Sign In or Register to comment.