in game: getting upgrades based on points?

DookiDooki Member Posts: 247
edited November -1 in Working with GS (Mac)
For my game I'd like to be able to upgrade my actor based on score. For example my actor walks for now and can upgrade to riding a bike, and then a car, etc.. Is this fairly simple in GS? I pose the question because I am still learning GS.

Thanks!

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    I would have an integer attribute called status. Then in the main character have a rule that says

    Rule
    When game.status=0
    ----Put all walking behaviors here

    Rule
    When game.status=1
    ----Put all running behaviors here

    Rule
    When game.status=2
    ----Put all riding behaviors here

    Then have a rule that says

    Rule
    When game.score<10 or whatever
    Change attribute game.status to 0

    Rule ALL
    when game.score≥10
    when game.score<20 or whatever
    change attribute game.status to 1

    etc.

    good luck!
  • DookiDooki Member Posts: 247
    Hey thanks Scitunes, and happy 4th!

    This is great info! Doing it this way I could set it up like in PvsZ that when you hit a certain score I could spawn an image of what the upgrade will be ( a bike for example). Then the game can launch the game level that has my guy on a bike. This sound correct?

    Thanks!
Sign In or Register to comment.