Im am completly baffled as to how go about creating this flowchart type game.
If you look at the gif example i have attached the way this works it that the user will click on b1 and then has to click on b2 for it be correct. If the user gets it right the line will become highlighted. If not a number gets added to the attempted clicks score:
What i want to happen is that when the user has linked the boxes from b1 to (b2 - b5), i want to disable b1, since the user has made all the selections.
How would i go about doing this? I tried using true false statements and adding numbers each time one of the buttons was clicked. But it all went horribly wrong. It must be a simple answer, but im just to baffled at the moment to figure it out.
Hi Chris,
Can you explain a little better, like in which order should the user click the buttons, should it be ( for example)
B1 > B2 > B3 > B1 > B4 etc etc or what…
Is there anything to prompt him to which button should be clicked first/next. Why is the correct number of clicks 36 ?
You are riight in that it should fairly easy to work out using something like a for…loop - but need more info
The way the user should click the button is from b1 to b2, b1 to b3, b1 to b4, b1 to b5, and then from b2 to b6 and so on. I have attached a brief that i received, which might make more sense.
There are no indicators of which to click first since the user has studied the flowchart previously, they should know the sequence in which to pick the boxes.
That is just an example below, the real flowchart apparently has 36 correct connections the student must make. Each time they get it right, 1 gets added to the correct attempts.
Ive heard that it might be good to user link order array to do this quiz, where you use the first item in link order array to check against until the link is matched, then use .pop() to remove it when it is matched and use the linkage to draw the new line.
Nah, thats my problem, i have never seen an example of this done.
I got the link array reply from a person in flash kit, but he didnt explain how to do it.
In terms of drawing a line automatically, i dont care for that i can just reveal a hidden movie clip when they get it correct. I just want to be able to diasable buttons once the user has finished all the correct connects.
I dont think ill be able to help since i dunno how it works :-
But yea, as far as i can understand, you could use an array to store the correct sequence.
Hi inVZbl,
Just to let you know that you are not forgotten, don’t know if you have progressed any with your prob. I have in that I have the flow chart working OK, just having a little prob with getting the correct lines to show, in fact it is a small problem with a for…in loop that I really should know how to solve.
When completed I will post file with explanations, unless you are already sorted.
Let me know
Thanks very much for your help, i sought of have an idea what to do, but i would love to see which way you have done it.
I wouldnt worry too much about the lines, as they will be moveclips and i will just reveal them once the person gets the answer correct.
I was going to do this as an array and put all the combinations in that. and once the user gets the right answer, its gets rid of it from the array, adds one to the correct attempts and reveals the hidden line.
I wouldnt worry too much about the lines, as they will be moveclips and i will just reveal them once the person gets the answer correct.
is that as some (most boxes) are clicked on more than once, you need to align the lines to the boxes in two arrays and then match them.
I have acheived that but I was missing one line of code - thanks to Pom over at as.org (is it the same Pom as here ?) that is now fixed.
The only prob I have with this file is the function to make sure that the correct clicks are recorded in the correct sequence is on Fr1 of buttonbase and not on the main timeline - I tried to put it on the main timeline but couldn’t call it properly, so anyone else following this thread can take a look and just finish it of nicely…
When you have done testing/playing you can remove layer DELETE ME, that is there so that you can see how the vars are working, but other than that it is not needed.
I have tried to comment the code clearly & copiously but if there is anything you do not understand, just post again
Hi,
That looks really cool, I couldn’t work out how you where going to get all those boxes on the screen, but then I decided that wasn’t really my problem (lol !
The graphics lokk good, the code works like dream, its very good.
Is it a paid project or a course project - either way you owe me a large beer !!!
yeah i work as a designer for a company, and as a part of my job is to build internal training products for variety of departments. So basically i do it all, and just started to get back into doing flash again…
The scripting baffels me, but i’ll get used to it…
I spent ages trying to figure out how to do this, i knew the logic but not how to write it up correctly. You helped out big time…thanks so much again…
Anytime u come to OZ, i’ll will be you one of a couple of those litre beers…that should do the trick…