Click or drag to resize
PlanBaseScrollSpriteIntoView Method
Scroll all layers on this plan's layer's map so that the specified sprite is within the visible area of the map.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual void ScrollSpriteIntoView(
	SpriteBase Sprite,
	bool UseScrollMargins
)

Parameters

Sprite
Type: (Default Namespace)SpriteBase
Specified which sprite will be scrolled into view.
UseScrollMargins
Type: SystemBoolean
If true, the layer will scroll the sprite into the scroll margins of the map, otherwise it will only be scrolled just far enough for the sprite to be fully visible on the display.
Remarks
For multi-player games, it may be desirable to set UseScrollMargins to false to allow at least one player to get closer to the edge of the screen without trying to keep it scrolled so strictly within the scroll margin area.
See Also