From SRB2 Wiki
Jump to: navigation, search
Test.png This article or section is outdated and has not been updated to reflect the release of SRB2 v2.2.

Please help the Wiki by correcting or removing any misinformation, as well as adding any new information to the page.

This article is about the player Object. For the placeable Thing types, see Player 1 - 32 Starts.

The player is a special type of Object that the user controls and plays as in SRB2. The player responds to a set of configurable controls that allow it to move or perform an action such as jumping. In Single Player, one or two players can be present, the second player being controlled by a bot with limited AI if present. In multiplayer mode however, multiple players can simultaneously be playing the game either as a team or against each other, depending on the gametype being played.

In SRB2, as in most Sonic games, the player normally has only a single health point and will die instantly on contact with a harmful Object or hazard – these include enemies, bosses, projectiles, spikes, lasers, lava. The player can collect rings as protection from hazards, which will be spilled on contact with them. Some power-ups such as shields or invincibility can also protect the player from hazards as well as prevent them from spilling rings. However, some hazards will instantanously kill the player regardless of rings or power-ups – e.g. crushers, death pits, drowning underwater.

The player itself has many attributes associated with it – the most important of these are displayed directly on the HUD: the player's ring count, the player's score, the time passed since the start of the level, and the number of lives the player has left. Additional attributes may be displayed depending on the gametype or the type of level being played. Unlike in Doom, SRB2 is usually played with a third person perspective, with the assistance of a chase camera to follow the player around – this allows players to see themselves on the screen directly, unlike in first person view.

Player Starts determine where the player is initially spawned (or respawned) in a map, though the exact function of them differs depending on the type of player start and the current gametype. In Single Player, Co-op, Race and Competition however, the player may respawn at a Star Post if one was activated before the player previously died, allowing the player to progress through the level without necessarily having to repeat from the beginning on death.

The exact abilities and movement speeds of the player depend on the character skin the player has chosen to play with – in unmodified SRB2 the main characters available are Sonic, Tails and Knuckles. In multiplayer gametypes, the player can also switch their skin color; the exceptions to this are Team Match and CTF, where the player can only be colored Red or Blue.

Object/state data

The Object type for the player is known as MT_PLAYER. The following properties of this Object type have special significance to the game:

  • SeeState – Starting state for the animation displayed in the multiplayer character select menu
  • AttackSound – Sound played when the thok ability is used
  • PainState – State for the player's pain and sliding animation
  • DeathState – Starting state for the player's death animation
  • PainChance – Default Object type for thokitem
  • Damage – Default Object type for spinitem
  • RaiseState – Default Object type for revitem

Related links

  Object types [view]
General EnemyBossPushableSpringMonitorNiGHTS power-upProjectileAmbient sound effect
Special PlayerShieldsFlickiesOverlay
Related links List of Object types