LayerBasePushSpriteIntoView Method |
Push the specified sprite into the currently active view.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public void PushSpriteIntoView(
SpriteBase sprite,
bool stayInScrollMargins
)
Parameters
- sprite
- Type: (Default Namespace)SpriteBase
Sprite to be pushed - stayInScrollMargins
- Type: SystemBoolean
True to push the sprite until it's within the scroll
margins, or false to only push it until it's fully visible in the view.
Remarks This only affects the sprites intended velocity and does not actually move it.
Solidity ot other factors could still impede the sprite's ability to stay in the view.
See Also