weapons

Hey i don't know if this is an easy question or not, but I have my weapon icons on the bottom that you can select and use. my question is how can i get the game to display how many of each are down there with a little number next to the item and for it to count down as i select them and use them until theres zero rather than having to put numerous items side by side filling up the screen? any help would be gratefully appreciated

-T

Comments

  • PhoticsPhotics Member Posts: 4,172
    It's tedious, but basically the weapon would need an attribute for ammo. Then, an actor could be added to overlap the icon. This actor would change shape based on how much ammo is left.

    Then the ammo icon/button actor itself would have to be sensitive to that value. If game.gun.ammo = 0, then change alpha color to .5 or something like that.

    As mentioned above, this is very tedious. I set up 4 weapons and 3 special items in BOT. It was a lot of work to do, especially with the five robot upgrades and inventory screen.
  • Thanks Photics, I'm going to give that a try.. it was very helpful
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You might find my health bar demo useful as it uses the same concept.

    http://forums.gamesalad.com/discussion/comment/384027/#Comment_384027

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.