Red Coin: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
(fixed link)
mNo edit summary
 
(14 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{object_infobox
{{Coin_infobox
|title= Red Coin
|title=Red Coin
|image= [[File:Red_Coin.gif]]
|image=Red_Coin.gif
|hitbox_radius=100
|coin_value=2
|hitbox_height=64
|tangibility=1000
|hitbox_down=
|draw=4000
|damage=
|gravity=
|speed=  
|friction=
|tangibility_radius= 1000
|buoyancy=
|interaction_type= Someone please add
|radius=100
|surfaces=
|height=64
|related= [[Yellow Coin]] <br> [[Blue Coin]]
|offset=0
|found_in= Most Courses
|foundIn=[[All Courses]] (excluding [[PSS]])
|expand=
|related=[[Yellow Coin|Yellow]] and [[Blue Coin]]s
}}
}}
'''Red Coins''' are red-colored coins similar to the [[Yellow Coin]]. When Mario touches one, it spawns a [[Secret Number]] and plays a sound. This sound increases in pitch through an octave in every version of the game except the [[Super Mario 64#Japanese|Japanese N64]] and [[Super Mario 64#Shindou|Shindou N64]] versions. When the eighth Red Coin is collected, a [[Red Coin Star]] spawns at the [[Star Marker]] immediately, with no delay. Note that spawning a [[100 Coin Star]] has a four-frame delay.
'''Red Coins''' are red-colored coins similar to the [[Yellow Coin|yellow coin]]. These coins have twice the coin value of a normal coin, and appear in groups of eight in every normal and hidden course in the vanilla game (excluding [[The Princess's Secret Slide|Peach's Secret Slide]]). When the eighth Red Coin is collected, a red coin star has a four-frame delay before it spawns at the [[Star Marker|star marker]]. Note that spawning a [[100 Coin Star]] has no delay.


No Red Coins load during the level, except in cases of a [[Loading Zone|loading zone]] in the level. Other than [[Tiny-Huge Island]]'s [[Wiggler's Red Coins|Red Coins]], all Red Coins are found in the main area of a level.
==Behavior==
When a red coin spawns, it checks for the nearest normal hidden red coin star and sets that to its parent if it exists. If none were found, it looks for the nearest Bowser hidden red coin star and sets that as its parent instead. If both of these checks fail, its parent is set to NULL. After setting its parent object, the object is given its hitbox.
 
From here, the coin's only behavior is to respond interaction from Mario. If it is interacted, it will firstly increment it's parent coin count as long as its parent is not NULL. On the Japanese version, it will spawn a normal coin collection sound at this point. In both the US and JP version, it next spawns an [[Orange Numbers|orange number]] as long as the coin is not the eighth collected (More specifically, is not the coin which would normally trigger a star. It is possible to have more than eight coins in a hacked ROM). On the US version, it now instead spawns its sound, which increments its pitch for every red coin collected.
 
The coin finishes by spawning coin sparkles and despawning.
 
{{Template:Objects}}
 
<!-- Category -->
[[Category:Collectibles]]
[[Category:Objects with Version Differences]]

Latest revision as of 22:30, 16 May 2021

Red Coin
Red Coin.gif
Technical Constants
Object Group Level
Coin Value 2
Tangibility Radius 1000
Draw Distance 4000
Hitbox
Interaction Type Coin
Radius 100
Height 64
Down Offset 0
Found In
All Courses (excluding PSS)
Related
Yellow and Blue Coins

Red Coins are red-colored coins similar to the yellow coin. These coins have twice the coin value of a normal coin, and appear in groups of eight in every normal and hidden course in the vanilla game (excluding Peach's Secret Slide). When the eighth Red Coin is collected, a red coin star has a four-frame delay before it spawns at the star marker. Note that spawning a 100 Coin Star has no delay.

Behavior

When a red coin spawns, it checks for the nearest normal hidden red coin star and sets that to its parent if it exists. If none were found, it looks for the nearest Bowser hidden red coin star and sets that as its parent instead. If both of these checks fail, its parent is set to NULL. After setting its parent object, the object is given its hitbox.

From here, the coin's only behavior is to respond interaction from Mario. If it is interacted, it will firstly increment it's parent coin count as long as its parent is not NULL. On the Japanese version, it will spawn a normal coin collection sound at this point. In both the US and JP version, it next spawns an orange number as long as the coin is not the eighth collected (More specifically, is not the coin which would normally trigger a star. It is possible to have more than eight coins in a hacked ROM). On the US version, it now instead spawns its sound, which increments its pitch for every red coin collected.

The coin finishes by spawning coin sparkles and despawning.