my integer wont show its value on display text no matter what it says value = 0

i could put in 0 or 20 and it will say 0
im trying to create a leveling system so i have
if game.xp > game.xp needed
do change attribute game.level to game.level+1

where could i have gone wrong any suggestions i have a button that adds 100 xp also everytime i click it

Comments

  • BBEnkBBEnk Member Posts: 1,764

    game.xp > game.xp this is always going to be the same I would think.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    @BBEnk I thought that at first to but I think the attributes are called game.xp and game.xp needed.

    If you are trying to display an attribute using Display Text, make sure you are selecting the attribute from the drop-down menu and not just typing it in.

    How are you setting the value to 0 or 20? What happens if you delete that Display Text behavior and drag in a new one?

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

  • i just deleted it and re put it and still nothing it ont show up do you think it has anything to do with the other game attributes being real?

  • ok cool i got it to work something with the way that i put distplay text i just needed to put display text game.level

Sign In or Register to comment.