Tedium {l Wrote}:I'm running the latest svn. Somehow the Inter-level popup appeared for no reason .
Edward_Lii {l Wrote}:Are those your best time/number of recordings of the previous level?
Tedium {l Wrote}:Edward_Lii {l Wrote}:Are those your best time/number of recordings of the previous level?
Yes they are.The bug will occur when you restart a level just before finishing it. Level 1 of the tutorial-levelpack "A walk in the park" is a good level for testing this bug.
acme_pjz {l Wrote}:By the way, I found that if the player and shadow goes to the exit simultaneously, then in the inter-level screen the player and shadow seems out of sync To reproduce this minor bug, play the attached level pack:
acme_pjz {l Wrote}:This bug occurs because inside the game logic code the if player or shadow goes to the exit then the code calls win function immediately, so the player and shadow are all resets, but after this the game logic code processes the game logic of shadow, so they are out of sync. IMHO if we won then we should change some variable first, after game logic code we check this variable and show inter-level popup if we won
acme_pjz {l Wrote}:There is another bug with inter-level popup, it pops when a new level is started And I can't produce this bug anymore...
acme_pjz {l Wrote}:Fixed in SVN r346, but not sure if it will introduce any new bugs
acme_pjz {l Wrote}:But IMHO we really need the added code in Main.cpp, there is exactly where the bug occurs. If you click 'Next' when player goes to the exit, then the level changed to next level and 'nextState' is set to 'STATE_GAME' in the 'while(SDL_PollEvent(&event))' loop. Then code continues, to 'currentState->logic()' then winning event triggers... So before run logic code we should change current game state to new state (if any)
Edward_Lii {l Wrote}:EDIT: But GUI events aren't handled by the SDL_PollEvent loop.
acme_pjz {l Wrote}::? There are 3 functions in the loop: inputMgr.updateState(true); currentState->handleEvents(); GUIObjectHandleEvents(); clearly the last function processes GUI events
Users browsing this forum: No registered users and 1 guest