Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Oh gotcha, that makes sense.

I run into that problem sometimes, and use a manual input blackout. Not sure how applicable that is for your case, but the general logic is like:

update(int state) {
  if (blackout) {
    if (!state) blackout = false;
  } else {
    ...poll state etc etc...
  }
}

Then when there’s a modal change, I set blackout nonzero and it will stop processing new input until the input state goes clear again.

(+1)

Thanks ! But I managed to get arround the problem with the timer i talked about, now the window won't be able to close for less than 0.5 seconds. (It gives at least the time to see the fish you got)