Let me start off by saying that this is not a serious game. Only trying to learn the anatomy of flowlab. I have a problem, and I have absolutely no idea how to fix it. If you manage to read all of this, I will be damned and impressed.
The concept of my game:
4 symbols are consistently spawning in 1-second increments. Press the button at the bottom that corresponds with the spawned symbol. It will eliminate that symbol. Eliminate all 4 symbols.
If you do not click the correct button, a message will pop up and will delay your time. Try to eliminate all symbols as fast as possible.
Please do try to comprehend the following, as it will be very essential for you to provide me a solution. Please bear with me. And so:
-I want the game to pause if you do not react in time for clicking the corresponding symbol. Correct? Due to that, I need a toggle switch for the BUTTON. And that, is what is screwing me up. (for the toggle switch: Output 1=pause game, Output 2=destroy symbol)
-So you’re asking yourself; how does the game know if you missed the symbol? Well my friends, I will tell you:
when any other symbol has spawned. They send messages to the button’s toggle switch’s “next” input. Smart idea? Heh heh, no.
-I have four symbols: red, blue, green, and yellow.
-For example: when red spawns, it toggles NEXT to OUTPUT 2. But what about when it despawns? How do I tell the game it despawns so I can switch the “NEXT”, or OUTPUT 1? (so the button knows if the symbol is not there and needs to pause the game if you missed the symbol)
-…sadly enough, when the next symbol spawns (which is completely randomized fyi), that’s how I tell the toggle switch to toggle. Seeing the problem here? Every time a symbol spawned, each button’s (4 in all btw) toggle switch is constantly being toggled!!! Which therefore means that my game is broken. You can cheat because OUTPUT 2 is constantly being activated and deactivated, regardless if the symbol has spawned.
A work around? I think my issue is that I need some way to tell each button that their symbol has despawned. I probably over complicated this…I apologize if I have. It’s simple, really. If you can think of anything, let me know. I will provide the link if asked.