Replicate actors
GigabyteGames
Member Posts: 10
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
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
This should help (just which out the number of lives to the number of bullets) Good luck on your game !
Link:
That did the job, thanks guys, much appreciated