I have 8 hotspots, there is a combination of 8 correct hotspot choices that completes a task, but i want to have a hotspot count that will cause the player to say 'maybe i need some help'/'or i should start again'
without upsetting my carefully planned hotspot sequence for success using variables to turn off/on hotspots, how could i add this function in to alert the player they have messed up the sequence and should start again?
thanks
Comments
If you're clicking e.g. Red, check that this integer = 0,3 or 5. If it is, the player pressed it at the right time, so incease the integer by one. If not, the player failed, so reset the integer to 0. If you click Blue and you increase the integer to 8, the sequence is complete.
You're changing the order in your example now. In this new example, you'd be checking for 0, 4, or 7 - as that when red appears in the sequence (starting from zero).
Run the Variable: Set after the Variable: Check. The variable is used to record how many correct choices made by the player - so only increase the value if the pump was clicked at the correct time, otherwise reset it back to zero.
If you mean you want to change what the sequence is (e.g. have a random code), that complicates things - understand what I'm getting at first beforehand.
Here's a screenshot for if a given "red" was in 0, 3, and 4 in the sequence. Follow the Actions with different integer values to see how it's set each time.