Yellow Coin: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 13: Line 13:
}}
}}


A coin is an [[object]] in [[Super Mario 64]] and is found is most courses. Upon touching a coin it increases the [[coin counter]], heals [[Mario]] and unloads itself. Collecting 100 Coins spawns a [[100 Coin Star]] near [[Mario]]. Using [[cloning]] and other [[glitches]] you can create and collect more coins than there are in one course.  
A coin is an [[object]] found in most levels. When Mario interacts with a coin, the [[coin counter]] increases, [[Mario]] is healed, and the coin unloads. When the coin counter reaches 100 while in one of the 15 [[courses]], a [[100 Coin Star]] is spawned above [[Mario]]. The amount that the coin counter increases and the amount that Mario is healed is determined by the coin's value, which is 1, 2, or 5 for yellow, red, and blue coins, respectively.
 
Various [[glitches]] such as [[cloning]] and [[time stop]] can be used to spawn and collect more coins than there are intended to be in a level.




== Coin Duplication ==
== Coin Duplication ==


Using [[cloning]] it is possible to collect more than the normal number of coins in a course. However using cloning to try and get up to 999 coins wouldn't work because each clone takes up a [[object slot]] in memory. Going over around 280 object slots freezes the game and so alternate methods must be used to gain infinite coins.
When Mario interacts with a coin, a flag is set which informs the coin to unload when it next updates. When the coin unloads, it marks itself as "collected" so that it does not spawn again when Mario leaves the area and returns. Using [[cloning]] or [[time stop]], we can prevent the coin from updating, and thus collect it without the coin being marked as "collected". This allows us to spawn the coin again, even after collecting it, effectively duplicating the coin.
 
In this way it is possible to collect more than the normal number of coins in a level. In several levels, it is possible to increase the coin counter to 999. However, when using [[cloning]] by itself, each duplicated coin takes up an [[object slot]] in memory. There are only 240 object slots total, and attempting to spawn an additional object once all of them are full will cause the game to freeze.


{| class="wikitable sortable"
{| class="wikitable sortable"