PlanBaseMapPlayerToInputs Method |
Associate the state of the input device for the specified player with the inputs on the specified sprite.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public virtual void MapPlayerToInputs(
int PlayerNumber,
SpriteBase Target
)
Parameters
- PlayerNumber
- Type: SystemInt32
A number from 1 to MaxPlayers indicating which
player's input settings to use. - Target
- Type: (Default Namespace)SpriteBase
Specifies which sprite the player should control
Remarks This is the basic means by which the input device, as customized for a
particular player, is associated with a sprite, so that the input will control
the sprite for that player. In many cases, it may be easier to use the sprite
definition's version of
MapPlayerToInputs(Int32) so that this
doesn't have to be repeated on every map, however in a multi-player game, it may be
easier or necessary to distinguish the individual players on each map if each player
uses the same sprite definition.
See Also