How do I make a question with 2 answers with similar results

Get help using Construct 2

Post » Thu Apr 28, 2016 7:22 pm

i am trying to make a math game. and there is a part were it says "4 + 4" and i have two choices(choice1, choice2)
choice1 says 44 and choice2 says 8. if the player chooses 44 then it should print out "that is wrong" if 8 then print "right".
but after the player answers i want to do continue asking questions without putting the same actions in both answers , and just become one
B
47
S
18
Posts: 37
Reputation: 3,684

Post » Fri Apr 29, 2016 3:52 pm

Use a function? And underlying question data structure? (Json comes to mind)
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Fri Apr 29, 2016 4:32 pm

As @gumshoe2029 mentioned functions would be nice to implement so you don't have to write the code again and again.

here is a tutorial that shows you how you could make it with all questions in a single textfile
https://www.scirra.com/tutorials/4810/m ... e-equation

Or a generated version of a math game
https://www.scirra.com/tutorials/1418/trivia-game

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Fri Apr 29, 2016 10:49 pm

Thenx
B
47
S
18
Posts: 37
Reputation: 3,684


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 7 guests