Global timer: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
m (Removing repeated boldings of title)
Line 3: Line 3:
The '''Global Timer''' is a variable that increases by 1 on every frame. Some events occur depending on the parity of the global timer, or depending on other functions such as trigonometric calculations, so [[pause buffering]] can be used to alter the state of the game.
The '''Global Timer''' is a variable that increases by 1 on every frame. Some events occur depending on the parity of the global timer, or depending on other functions such as trigonometric calculations, so [[pause buffering]] can be used to alter the state of the game.


The '''Global Timer''' starts counting from the moment the console/emulator is powered on, and resets to 0 every time the game is reset. Many Objects and variables depend on the global timer to determine their course of actions on any given frame. Example: the coin display value in the [[HUD]] only goes up once the '''Global Timer''' is odd. This is why that with pause buffering, the coin display can fail to update for a certain amount of time.
The Global Timer starts counting from the moment the console/emulator is powered on, and resets to 0 every time the game is reset. Many Objects and variables depend on the global timer to determine their course of actions on any given frame. Example: the coin display value in the [[HUD]] only goes up once the Global Timer is odd. This is why that with pause buffering, the coin display can fail to update for a certain amount of time.
 
==Phenomena Dependent on the Global Timer==
==Phenomena Dependent on the Global Timer==
* The opacity of Bowser's shock waves is decreased by 1 when the global timer is not divisible by 3.
* The opacity of Bowser's shock waves is decreased by 1 when the global timer is not divisible by 3.
Line 16: Line 17:
* The JRB aquarium bubbles only spawn when the global timer is odd.
* The JRB aquarium bubbles only spawn when the global timer is odd.
* Penguin [[Blinking]] is controlled by the global timer
* Penguin [[Blinking]] is controlled by the global timer
[[Category:Mechanics]]
[[Category:Mechanics]]

Revision as of 03:24, 8 May 2021

The Global Timer is a variable that increases by 1 on every frame. Some events occur depending on the parity of the global timer, or depending on other functions such as trigonometric calculations, so pause buffering can be used to alter the state of the game.

The Global Timer starts counting from the moment the console/emulator is powered on, and resets to 0 every time the game is reset. Many Objects and variables depend on the global timer to determine their course of actions on any given frame. Example: the coin display value in the HUD only goes up once the Global Timer is odd. This is why that with pause buffering, the coin display can fail to update for a certain amount of time.

Phenomena Dependent on the Global Timer

  • The opacity of Bowser's shock waves is decreased by 1 when the global timer is not divisible by 3.
  • Waves created when an object is thrown into water will disappear when the global timer is a multiple of 16.
  • Swoop's yaw and roll are dependent on the value of the global timer.
  • Coffin's shaking movement and sound is dependent on the global timer.
  • The LLL drawbridge only begins lowering or raising if the global timer is a multiple of 8.
  • Blowing wind spawns large particles when the global timer is even and small particles when the global timer is odd.
  • Water ripples created when Mario moves in water only spawn if the global timer is even.
  • The time it takes for Mario to be able to grab Hoot again after letting go of him is dependent on the global timer.
  • The JRB aquarium bubbles only spawn when the global timer is odd.
  • Penguin Blinking is controlled by the global timer