SpriteBaseScrollSpriteIntoView Method |
Scroll all layers on this sprite's layer's map so that the sprite is within visible area of the map.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public virtual void ScrollSpriteIntoView(
bool UseScrollMargins
)
Parameters
- UseScrollMargins
- Type: SystemBoolean
If true, scroll the sprite into the scroll margins of the map. Otherwise just scroll the layers var enough so the sprite is within the edges of the display.
Remarks For a multi-player game where both players are in the same view, you may want to
set UseScrollMargins to false in order to allow the players to get closer to the edge of the
display when moving apart from one another. This function will not affect layers with a scroll
rate of zero.
See Also