Choosing random items in a .INI file

For questions about using Classic.

Post » Fri Dec 07, 2012 5:00 pm

Hey, I'd like to know how one could choose random items and groups in a .INI file. I am making a random question type scene in my game and I'd like to know how I could make the game choose a random question, then choose a random order of answers in that .ini group and apply them to Texts. I can get it to work without making it random, but I can't seem to get it to choose anything random. I'd appreciate all the help/assistance I could get!

(I'm new to construct, so clear instructions(and maybe a step by step guide?) would be very helpful!)
Posts: 1
Reputation: 252

Post » Sat Dec 08, 2012 4:56 pm

You might have an easier time loading all of the questions and answers into an array on layout startup (eg: X dimension for question number, Y dimension for answers).

Then you might have an easier time working with the data rather than making constant reads to the INI file.
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
Posts: 2,082
Reputation: 14,914

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests