How do I make a somewhat switch statement

Just started using Construct 2? Post your questions here

Post » Sun May 24, 2015 5:17 am

Hi guys, I am making a somewhat quiz type app.

My case is this, I have 4 text box and the answer will be in one box but I want to make it randomize like for each question the answer can be in text box 1 or text box 3.

I am not sure how to approach this in Construct 2 on how can I make a conditional statement like a switch condition in the code.
B
3
Posts: 2
Reputation: 179

Post » Sun May 24, 2015 5:27 am

Good old If ... Else.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Sun May 24, 2015 10:28 am

My question is how :) I mean let say I randomize a number from 1 to 4 representing my answer boxes and
put it in a global variable.

How will I put in the event sheet a "Good old If ... Else" that what random number I will got will be put the right answer the rest are wrong answers
B
3
Posts: 2
Reputation: 179



Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 5 guests