I want to add one more button to the puzzle and not sure about how to add the next var3.
How do I add one more to this?
1. Create 3 hotspots, one for each switch;
2. Create 2 variables (let's call them var1 and var2);
3. Change the properties of the first hotspot (the one that the player has to click at first) so that the value of var1 becomes 1 and the value of var2 becomes 0 when the player clicks on the hotspot;
4. Change the properties of the second hotspot so that the value of var2 becomes 1 when the player clicks on the hotspot;
5. Change the properties of the third hotspot so that it is enabled only if var1=1 and var2=1;
Now the third hotspot will be enabled only if the player has clicked on the first two hotspots in the right order. To make the door open, go to the properties of the third hotspot, then select "Go to another frame", and then select a frame in which the door is open.
Never mind I got it to work.