I've set myself a mini challenge to create a game within a short space of time. Specifically, I won't be sleeping until it is complete.
I've been working on it for about 12 hours now, and I'm almost done, but my brain is a little frazzled.
Anyway, I need some help. I have a system whereby the player moves through a 'gate' and must be pushing a specific button as they pass through the gate. Like a rhythm game, a'la guitar hero or Marvin Spectrum.
The problem I have is that it works really intermittently. The score is supposed to increase when you press the correct button when going through the right kind of gate, but sometimes it does and sometimes it doesn't. More often than not it doesn't. There doesn't seem to be any rhyme or reason to it either, you can get several of the same gate type in a row and it will work on some but not others. I'm at a loss...
Here is a pic of the code that governs this process:
Help meeeeee, I'm so close, then y'all can play it!