add all variables to one variable

0 favourites
  • 7 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • like in image.

    When stats show armor points system must check all stats

    and this all values add up to one value 'Armor defense' how do this ?

    if i set for example this values

    <img src="https://dl.dropbox.com/u/44710358/def.jpg" border="0" />

  • Armor Defense = Helmet Def + Armor Def + Pants def + Boots def

    It's adding the values of several variables (possibly instance variables ?) and setting the result as the value for another (instance) variable.

    Either your question is too vague, either badly formulated.

  • Hi Kyatric, I want to get such a mechanism which will automatically counted the change throughout the game play statistics and summarized them in the meter called 'Armor Defense'

    For example, current statistics suggest as many as in the image, such as a helmet when I change for the better by 3 in the 'Armor defense' should indicate only 13 not 10 By analogy with other statistics. For if the character will receive the damage will depend on the amount of 'Armor Defense'

  • If you set the armor defense variable like Kyatric suggested, that variable should keep updating when you change the others.

  • ok i will try

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Kyatric this works!:) Let me ask one more question (do not want to open a new topic) How do you type the name of the player on the main screen, the player's name will display in different layouts?

  • Make a Text global variable "PlayerName".

    Assign the content of a textbox object (textbox.text) to "PlayerName".

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)