1,811
edits
No edit summary |
(Added essentially full behavior, although this should page needs a page on the red coin spawner to make full sense.) |
||
Line 16: | Line 16: | ||
|hurtbox_radius= | |hurtbox_radius= | ||
|hurtbox_height= | |hurtbox_height= | ||
|offset= | |offset=0 | ||
|coins= | |coins= | ||
}} | }} | ||
'''Red Coins''' are red-colored coins similar to the [[Yellow Coin]]. | '''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. 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. | ||
==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. |