Instance Variable Question

Not favoritedFavorited Favorited 0 favourites
  • 3 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • hi,

    i have a multiple choice game and there are a lot of questions.

    for every question there are 3 options.

    if you click one (correct) button it will add to score 1 and automatically go to next layout.

    if you click one (incorrect) button it will add nothing to your score and will automatically go to next layout-without informing player of wrong answer.

    ----

    thats what i want to do.

    but that will use so many events.

    theres gotta be an easier way.

    ----

    is it possible to make all buttons the same sprite (but the right answers having a variable of 1 and the wrong answer having a variable of 0) and when clicked it will add the instance variable to the global score?

    that way i can have one event:

    on button clicked--add to score button.instancevariable

    -------------------go to next layout

    i just dont know how to implement that

    or is there a different way?

    please help.

    i appreciate your help in advance

    thanks

    Radkampfwagen

  • sounds like an ok approach. You would need to have the correct answer ready and then pick a sprite at random and set the answer to it with text or another var, and score instance var to 1. Then the remaining ones with score var default 0 you assign at random the incorrect answers.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • lionz

    thx again.

    all works well

    i really appreciate your help

    thanks,

    Radkampfwagen

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