First time poster here, but I've been tinkering with Construct for a while already. However, this is my first project using Functions and generally more elaborate events. And I ran into a problem that I just can't wrap my head around!
The game is basically two games in one, so feel free to ignore eventsheet1 (it's not being called on) and only observe the left side of the screen. (Sure, the two "separate games" might conflict, but I'm very certain that's not it)
The Dialogue Game works like this: Text is being displayed one after the other and at the end the player is allowed to pick an answer (press 1, 2 or 3). The answers the player didn't select are set invisible and after having pressed a button, they're naturally not allowed to choose again.
The Problem: The answers are set visible once more after a short period of time and the player can pick again.
I think the root of the disaster lies somewhere here:
While pressing a button triggers the function which sets answerAllowed to 0 and thus prevents the answers from being made visible again, it could be triggered in the miniscule timeframe until the function call. However, adding the condition "only trigger once while true" only broke the game further. What's more is that the answers don't become visible right away, but after a second or so. Very strange.
Can anyone help with this? I really hope it's something stupid, so I can feel a bit stupid and move on quickly. : )
Thanks for reading!
EDIT: Whoops, can't post download links. When I try to edit the post to attach the file the site breaks? D :
EDIT 2: Welp, here's the chopped up download link: dl . dropboxusercontent . com/u/7648042/games/GameAWeek/%234/Dialogue%20-%20please%20help%21 . capx