SpriteBaseReactToSolid Method |
Alter the sprite's velocity to react to solid areas on the map.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public virtual bool ReactToSolid()
Return Value
Type:
BooleanTrue if the sprite's velocity was altered; in other words, if it pushed
against something solid. That doesn't necessarily mean the sprite was stopped by
something solid because it may just be pushed uphill.
Remarks It is recommended that this be the last rule applied to the sprite's velocity
before
MoveByVelocity is applied. This will help ensure that the sprite
never goes through solids even if scrolling and platforms try to make it.
See Also