Hello everybody!
I'm finally in the final stages of the development of my game, but unfortunately I'm running into some boring and unexpected bugs.
My game is a similar mini-game collection like Wario Ware Inc. and the Dumb ways to die, where I developed each mini-game in separate CAPX projects. The basic mechanics consists of mini-games of different genres whose difficulty increases as the player progresses.
Prior to integrate them into one project, each mini-game contained a variable "level" for test the increased difficulty, which consisted in increasing the speed of enemies, enemies emergence of intensity and others things. When they were in their own CAPX, every game worked perfectly on any difficulty level. In the integration of the project, I left alone a global variable "level", which increases as the global variable "victory" gained 3 points.
It turns out that from the second level of difficulty or when a mini-game is revisited, some mini-games are presenting unexpected strange behaviors, related to own global variables.
I created a "RestartVars" function for each mini-game, whose function is to restart the main own global variables and this function is called at the Start of the Layout, but I cannot understand why this isn't working in some games.
Does anyone have an idea what might be going on?
I thank once again the participation and collaboration of you!