mekonbekon's Recent Forum Activity

  • DiegoM

    Thanks for the clarification. Is this something that could be implemented or would it be tricky within the current framework?

  • Is it possible to set the angle of a timeline path relative to the angle of the object using the timeline?

    For example, if my timeline is a straight horizontal path are there settings that will make my object follow the path vertically if the object is facing 90 degrees?

    I've tried fiddling around with the relative result setting, but haven't had any luck.

  • Okay. How to add previous button. Do we subtract one from current question?

    Yes, and then call set question. If you go back to the previous question and replay it you'll also need to revert the score; if you can skip back multiple questions then this will require you to record the result for each question - you could use an extra in column your timer array to do this, then tally the column after updating to calculate the new score.

    BTW, in your file you've got an instance variable NumberOutOf100.Question_No - it's unnecessary, just use the currentQuestion global variable in the displayed text.

  • If I understand you correctly, you want the CorrectandWrong text to display "Wrong" if the user selects an incorrect answer or doesn't select a correct answer. If that is the case then set the text to "Correct" at the start of the function and then set the text to "Wrong" in the conditions where you add 1 to n.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Also what if The person presses submit and no answers were checked? It should be wrong.How to code?

    It's up to you to decide how you want to represent that information to the player. As I mentioned above, if you're using the ticks/crosses to indicate the correct answers then it won't always be clear what the user's result was. That's why I suggested using tick/crosses to grade the selections and setting the correct answers text to green, so the user can differentiate between the correct answers and their selections.

  • In eEnd reset the global variables:

    + Touch: On tap gesture on Restart

    -> System: Reset global variables to default

    -> System: Go to Quiz

  • I'm not sure what you mean by "restarting arrays".

  • If you want all of the ticks/crosses to show then don't set any to invisible and just set the tick/cross on the conditions that test if the answer is correct/incorrect:

    If you do that then you won't need to set the text to green as the tick is already displaying the correct answers.

    Bear in mind that it won't be as obvious to the user how you're scoring the answers; ticks and crosses are typically used to mark user choices rather than flag the correct answers so it may be difficult to discern between a tick indicating a correct answer or a correct selection, especially when there are multiple correct answers.

  • Upon submitting, the current set-up will display:

    1. Correct answers in green text (regardless of whether or not they've been selected)

    2. A tick next to correct selected answers

    3. A cross next to incorrect selected answers

    If that's not the desired output, please let me know what you want to display for the following use case scenarios:

    1. Correct answer selected

    2. Incorrect answer selected

    3. Correct answer not selected

    4. Incorrect answer not selected

  • I've updated the project again to show what I mean - grab latest:

    dropbox.com/s/8rxd49g89k9zyxo/quizApplern.c3p

  • In the updated file I provided, events 16 to 21 in function checkQuestion check if an answer is correct and if it is selected:

    If it is correct & selected (event 17) or incorrect & not selected (event 21), spr_tickCross for that answer displays a tick.

    If it is correct & not selected (event 18) or incorrect & selected (event 20), spr_tickCross for that answer displays a cross and the local number n is increased by 1.

    At the end of the function if n = 0 (i.e. no correct answers missed or incorrect answers selected) then the score is increased by 1.

    If you only want spr_tickCross to be shown for selected answers then set the spr_tickCross in events 18 & 21 to invisible.

    If want spr_tickCross to be shown for selected answers and missed correct answers then set the spr_tickCross in event 21 to invisible.

    Whatever you choose, it would be best to communicate to the user all the correct answers and incorrectly marked answers in some manner - perhaps reveal an icon next to the correct answers or change the text colour?

  • If you don't want answers that havn't been checked and are incorrect to display a tick set those ticks invisible in the checkQuestion function.

mekonbekon's avatar

mekonbekon

Early Adopter

Member since 9 May, 2014

Twitter
mekonbekon has 13 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x2
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

18/44
How to earn trophies