Speed: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
No edit summary
Tags: Mobile edit Mobile web edit
 
(12 intermediate revisions by 10 users not shown)
Line 1: Line 1:
'''Speed, '''abreviated as''' '''('''''SPD''''')''' '''is an ingame variable that indicates how many [[Unit|units]] [[Mario]]'s moving. Vertical Mario speed is called '''Vertical Speed (VS) '''and Horizontal Mario speed, '''Horizontal''' '''Speed (HS). '''If the Speed value is ''Negative'', it means that Mario is moving ''Downwards ''in ''VS'', or ''Backwards'' (prefixed in both cases with an "'''M'''").
{{stub}}


== Gravity Effect and Terminal Speed ==
'''Speed''', often abbreviated as '''SPD''', is a type of internal variable that represents how many [[unit]]s [[Mario]] moves per frame. There are many speed variables, such as Horizontal Speed (HS), Vertical Speed (VS), X/Y/Z Speed, Sliding Speed, and X/Z Sliding Speed. These variables do not always represent how much Mario ''actually'' moves per frame; for example, when something is in his way, Mario can have horizontal speed without going anywhere. See [[De Facto Speed]] for more.
[[File:Mario Falling.png|thumb|279x279px|Mario falling at ''Terminal Speed'' ('''M75''')'' ''in [[Princess's Secret Slide|PSS]]]]
 
When [[Airborne]], mario's Vertical Speed is constantly ''decreasing ''by 4 every frame, as ''Gravity'' is applying on him a Constant of -4 per frame. Additionally, Mario's Vertical ''Terminal Speed ''is -75 ('''M75''' as shown in-game), so he will not fall faster than that. VS is unused when Mario is in a ''ground state,'' so his VS is normally reset to '''0''' as soon as he touches the ground, and will remain that way until Mario is Airborne again. However, there are certain movements that '''don't''' reset Mario's VS when he touches the ground ''(See [[Vertical Speed Conservation]]).''
==Gravity==
[[File:Mario Falling.png|thumb|279x279px|Mario falling at ''Terminal Speed'' ('''M75''')'' ''in [[The Princess's Secret Slide|PSS]]]]
When [[Airborne|airborne]], Mario's vertical speed decreases by 4 units every frame due to gravity, and is capped at -75 units per second.
 
==Speed Conservation==
The speed variables are normally updated every frame, but sometimes this is not the case. When outside of water and not sliding, Mario's sliding speed is constantly updated to whatever his horizontal speed is, and when in water, Mario's sliding speed isn't updated at all. Therefore, horizontal speed can be conserved by going into water and entering a sliding state on the same frame Mario exits (for example, by pressing Z to crouch) to activate his sliding speed.
 
Some other examples of speed conservation are [[Vertical Speed Conservation]] and [[Vertical and Horizontal Speed Conservation]].
 
==Negative Speed Buildup==
The main reason why Mario is able to get massive amounts of negative speed so easily, is because although the game developers often hard capped Mario's positive speed, they usually just soft capped Mario's negative speed allowing Mario to get hundreds, thousands, or even millions of units of speed with tricks such as the [[Backwards Long Jump]], [[Hyperspeed Walking]] and [[Backward Shell Hyperspeed]]. This slight oversight is the main root of many speed-gaining tricks in the game. Although, it's worth noting that some sorts of Mario's positive speed (just as some other negative) have no cap at all, such as airborne accelleration of 0.15 units per frame^2 (which allows Mario to build positive speed with HSWK, pedro spot etc.).
 
But it is usually easier to build negative speed than positive one. For example, while [[Long Jump]] speed has both positive cap (48) and negative cap (-16), the positive one is hard capped (at the beginning of the long jump, it is immediatelly set to 48 if it's higher), while the negative one is soft capped (it is slowly increasing to -16 if it's lower (note: lower negative is further from zero, not closer)). That's why Mario can build speed while jumping backwards (BLJ), but not forwards.
 
The maximum amount of negative speed Mario is able to build up is approximately -3*10^38. At higher speeds, Mario's intended next position increases beyond the highest finite value the game can store his position in, and the game crashes.
[[Category:Mechanics]]

Latest revision as of 00:59, 21 August 2023

Speed, often abbreviated as SPD, is a type of internal variable that represents how many units Mario moves per frame. There are many speed variables, such as Horizontal Speed (HS), Vertical Speed (VS), X/Y/Z Speed, Sliding Speed, and X/Z Sliding Speed. These variables do not always represent how much Mario actually moves per frame; for example, when something is in his way, Mario can have horizontal speed without going anywhere. See De Facto Speed for more.

Gravity

Mario falling at Terminal Speed (M75) in PSS

When airborne, Mario's vertical speed decreases by 4 units every frame due to gravity, and is capped at -75 units per second.

Speed Conservation

The speed variables are normally updated every frame, but sometimes this is not the case. When outside of water and not sliding, Mario's sliding speed is constantly updated to whatever his horizontal speed is, and when in water, Mario's sliding speed isn't updated at all. Therefore, horizontal speed can be conserved by going into water and entering a sliding state on the same frame Mario exits (for example, by pressing Z to crouch) to activate his sliding speed.

Some other examples of speed conservation are Vertical Speed Conservation and Vertical and Horizontal Speed Conservation.

Negative Speed Buildup

The main reason why Mario is able to get massive amounts of negative speed so easily, is because although the game developers often hard capped Mario's positive speed, they usually just soft capped Mario's negative speed allowing Mario to get hundreds, thousands, or even millions of units of speed with tricks such as the Backwards Long Jump, Hyperspeed Walking and Backward Shell Hyperspeed. This slight oversight is the main root of many speed-gaining tricks in the game. Although, it's worth noting that some sorts of Mario's positive speed (just as some other negative) have no cap at all, such as airborne accelleration of 0.15 units per frame^2 (which allows Mario to build positive speed with HSWK, pedro spot etc.).

But it is usually easier to build negative speed than positive one. For example, while Long Jump speed has both positive cap (48) and negative cap (-16), the positive one is hard capped (at the beginning of the long jump, it is immediatelly set to 48 if it's higher), while the negative one is soft capped (it is slowly increasing to -16 if it's lower (note: lower negative is further from zero, not closer)). That's why Mario can build speed while jumping backwards (BLJ), but not forwards.

The maximum amount of negative speed Mario is able to build up is approximately -3*10^38. At higher speeds, Mario's intended next position increases beyond the highest finite value the game can store his position in, and the game crashes.