Weapon Switch after achieving certain threshold ?

0 favourites
  • 3 posts
From the Asset Store
JBoB Sound Studio AAA Quality Sound Effect "Weapon Master" Pack contain royalty-free stock sound effects.
  • Hey guys,

    is there some simple way how to make my "player" sprite change weapon type after hitting certain threshold ? For example when i hit "Score" = 10,000, it changes my weapon to stronger version. Then when i drop under 10,000, it switches to previous version.

    Thanks.

  • Hey guys,

    is there some simple way how to make my "player" sprite change weapon type after hitting certain threshold ? For example when i hit "Score" = 10,000, it changes my weapon to stronger version. Then when i drop under 10,000, it switches to previous version.

    Thanks.

    One way to go about this is to have a group in an event sheet say "Strong Gun" group and "Weak Gun" group. Then have a global variable (if score isn't level based and is something more global to the game and is carried from one level to another) called score.

    Now let's say your score increases if an enemy dies, so your code would look like this:

    Event: On Enemy Destroyed -> Add 1 to Score.

    SubEvent: Score >= 10,000 -> Group "Strong Gun" activated

    -> Group "Weak Gun" deactivated.

    Same thing would happen for the event when you lose score. In Strong Gun you have your strong gun logic and in Weak Gun you have your weak gun logic.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sounds good thanks.

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