How do I add experience points to my player?

FungoEntertainmentFungoEntertainment Member Posts: 36
edited November -1 in Working with GS (Mac)
I made the player shoot enemies and destroy them. Now I need to add experience points for each enemy I kill with my Player. It is important to me, because I need to unlock different weapons. I just need to add the ex. points system. Any help would be appreciated!

Comments

  • iDeveloperziDeveloperz Member Posts: 1,169
    With an Attribute.

    Every time you kill an enemy, change attribute xp to xp+1

    then a actor where.
    if xp = 10
    Whatever

    if xp = 20
    Whatever

    and so on.
  • FungoEntertainmentFungoEntertainment Member Posts: 36
    What type of attribute should it be?
  • RHRH Member Posts: 1,079
    integer
  • iDeveloperziDeveloperz Member Posts: 1,169
    Yeh, you will use an integer for practically everything. :)
  • JGary321JGary321 Member Posts: 1,246
    You only use real attribute if you need decimal points. That's the main difference.
Sign In or Register to comment.