NPC (boolean) counter

0 favourites
  • 2 posts
From the Asset Store
Make a displayed number gradually increase or decrease, making an impression of a real-time counting.
  • Hey Guys,

    I can't quite figure this out. I tried to do a search, but couldn't find what I wanted.

    Problem: I'd like to award 1 point for each NPC the player talks to the first time.

    So, I set an boolean instance variable for the NPC. When the player talks to the NPC it sets the boolean to True. (I called the boolean "SpokenTo")

    The I have an event:

    System| For each NPC

    NPC| Is SpokenTo

    -> Add 1 to Score

    <img src="" border="0" />

    But the counter continually goes up after speaking with the NPC. I tried a "trigger once when true" condition, but it didn't work.

    Sorry, I don't have a capx to share, but I can make one if necessary.

    Edit: I should also note that each NPC has a unique instance variable (in my case, each NPC has a unique name).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Heh, I sort of answered my own question with my last edit. It's a bit more manual that I'd like, but gets the job done :)

    <img src="" border="0" />

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