Generate Unique Times Tables Questions (array)

Discussion and feedback on Construct 2

Post » Sun Mar 17, 2013 10:45 pm

Hello,

I had a great deal of difficulty working out how to use arrays to generate a set of unique Times Table questions.

i.e., I wanted

6 x 2
3 x 2
5 x 8
7 x 9

But if 3 x 2 came up again it had to be discarded and different equation generated.

I have solved my problem and I thought I would post a commented capx in case some one has a similar issue in the future.

Also I am quite keen to post to see if I could have done this more efficiently. For example, I am not so happy that I need to use global variables.

GenerateUniqueTimesTableQuestions.capx

czar2013-03-17 22:47:27
B
31
S
8
G
5
Posts: 436
Reputation: 5,836

Return to Construct 2 General

Who is online

Users browsing this forum: randomly, Unconnected and 0 guests