Yellow Coin: Difference between revisions

Jump to navigation Jump to search
m
Already have hyperlinks to relevant articles earlier in page.
(Added hitbox)
m (Already have hyperlinks to relevant articles earlier in page.)
Line 20: Line 20:
== Coin Duplication ==
== Coin Duplication ==


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.
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.
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.

Navigation menu