View Issue Details

IDProjectCategoryLast Update
0010651Shattered HavenBug - GameplayFeb 9, 2013 5:47 pm
ReporterGameMaker24 Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Summary0010651: Scripts can process WAIT commands even while the game is paused.
DescriptionI've just discovered a very troubling bug. I've started a separate issue here, but there is another issue regarding the WAIT command that I will link to here.

If you pause the game, the WAIT timer continues to tick! This means I can pause the game once the action is in motion, wait several seconds, and then unpause to see the same chaos as described above.
TagsNo tags attached.
Internal WeightMajor Problem

Relationships

related to 0010650 resolvedChris_McElligottPark Scripts can process WAIT commands if prerequisite script displays text. 

Activities

GameMaker24

Feb 9, 2013 5:38 pm

manager   ~0030626

By "above" I meant http://www.arcengames.com/mantisbt/view.php?id=10650

Chris_McElligottPark

Feb 9, 2013 5:47 pm

administrator   ~0030627

Thanks! New compiled version 694.

* Completely reworked how the WAIT command works internally. Previously it was marking the timestamp of when the wait command started, and then in the future would check to see if the current timestamp was more than the requested number of milliseconds into the future. This caused issues with pausing, text popups, and similar.
** Now it instead does an accumulative per-frame delta-t approach, which is more modern and more robust -- and consistent with the rest of this game and our other titles. The upshot is that when the branch of code doesn't get called (due to it being paused or blocked by text or whatever) the game doesn't "keep counting" like it used to. It wasn't actually counting before, it was just looking at the start point and end point, which was the problem.

Issue History

Date Modified Username Field Change
Feb 9, 2013 5:36 pm GameMaker24 New Issue
Feb 9, 2013 5:36 pm GameMaker24 Status new => assigned
Feb 9, 2013 5:36 pm GameMaker24 Assigned To => Chris_McElligottPark
Feb 9, 2013 5:37 pm GameMaker24 Relationship added related to 0010650
Feb 9, 2013 5:38 pm GameMaker24 Note Added: 0030626
Feb 9, 2013 5:47 pm Chris_McElligottPark Note Added: 0030627
Feb 9, 2013 5:47 pm Chris_McElligottPark Status assigned => resolved
Feb 9, 2013 5:47 pm Chris_McElligottPark Resolution open => fixed