Click or drag to resize
PlanBasePushSpriteTowardSprite Method
Push the specified Source sprite toward the specified Target sprite.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual bool PushSpriteTowardSprite(
	SpriteBase Source,
	SpriteBase Target,
	int Force
)

Parameters

Source
Type: (Default Namespace)SpriteBase
Sprite to push.
Target
Type: (Default Namespace)SpriteBase
Sprite toward which to push.
Force
Type: SystemInt32
Acceleration in tenths of a pixel per frame per frame.

Return Value

Type: Boolean
True if the sprite is pushed, false if the sprites are already a the same location.
See Also