applern's Forum Posts

  • Have you checked the Demo Quiz?

    I already answer another Topic from you and now I realize my answer may not work completely.

    What I would do is:

    Use a button to submit the answer

    Button -> On Clicked

    First Disable the button (we avoid checking more than once)

    If (C and E are checked and B is not checked) do { something }

    If (B is checked) do {something}

    As you said the B is checked I already have an else button.

  • Have you checked the Demo Quiz?

    I already answer another Topic from you and now I realize my answer may not work completely.

    What I would do is:

    Use a button to submit the answer

    Button -> On Clicked

    First Disable the button (we avoid checking more than once)

    If (C and E are checked and B is not checked) do { something }

    If (B is checked) do {something}

    No I haven't seen it. Thank you

  • As far as I understand in any case scenario, if B is checked, the answer is wrong.

    If that is true, then in the second part just check B.

    Yes, but I will be exporting this game and others will play through which I don't have control. If they do B C and E what do I do

  • Hey.

    So in my game, there is a question and 5 answers. A, B,C,D,E.

    The correct answer is C and E

    so I did coding when C and E checked to add 1 to Correct.

    Then another coding B C and E checked to add 1 to wrong.

    Wrong and Correct are variables.

    And if Correct = 1 show seed (a sprite)

    And if Wrong = 1 Show X (a sprite)

    But when I tried it I checked B, C, and E and it added 1 to Correct instead of Wrong.

    I think this is because of The C and E from the correct answer overlapped with the C and E from the wrong answer, which caused some looping in the code. How can I change this? Attached are the images of my coding. Thanks.

  • Hey Guys.

    Like my last topic

    My global variable is called 'Wrong'

    I have a code which is:

    Event

    When option C and

    Option E clicked.

    Action

    Player Do animation

    SubEvent

    Event

    Trigger Once

    Action

    Add 1 to wrong

    Event

    SYSTEM-Wrong= or more than 1

    Action

    Show wrong (sprite)

    In this game, there are multiple answer choices and questions.

    At first, it didn't work, but

    then I checked the debugging and I saw that my code of 'add 1 to wrong'

    added 1 all the time even though I added a trigger once How do I stop this?

    To be more clear I have added my coding.

    This is my 1st code

    And my 2nd Code

    Edit here is my debugging

  • Yes use trigger once. On checked runs constantly, in your text you said 'on clicked' which would run once only as it is a different kind of event.

    Thank YOU SO MUCH!

  • I think that your conditions are meet more for more than one tick so you need to use the "trigger once while true " option

    Thank YOU SO MUCH!

  • Here. The 2nd event I have already posted above

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey Guys.

    My global variable is called 'Correct'

    I have a code which is:

    Event

    When option A and

    Option B clicked.

    Action

    Add 1 to correct

    And after that is this code which takes place in another layout:

    Event

    SYSTEM-Correct=1

    Action

    Show seed (sprite)

    At first, it didn't work, but

    then I checked the debugging and I saw that my code of 'add 1 to correct'

    kept on adding one. How do I stop this?

    Attached is my 2nd code and the debugging

    above is the debugging and here is my 2nd code

  • Post a comment. Then click "Edit" above your comment. Then you will be able to insert a picture. It's a bug on the forum:

    https://github.com/Scirra/Construct.net-website-bugs/issues/135

    Nevermind, found it, Here it is:

    Actually, I understood thnx 4 yr help

  • Post a comment. Then click "Edit" above your comment. Then you will be able to insert a picture. It's a bug on the forum:

    https://github.com/Scirra/Construct.net-website-bugs/issues/135

    Uh.... IDK how to do that. Can't find the edit button

  • Okay!

  • Edit your comment and then you will be able to insert an image.

    Or post on Imgur.

    Sorry for all the questions. I'm pretty new at this. I hope I'm not annoying you.

  • Edit your comment and then you will be able to insert an image.

    Or post on Imgur.

    How can i edit?

  • I mean there is some mistake in your events, and unless you post a screenshot or share your project file, we can't help you.

    How can i insert a photo