Constructs a new sprite instance given all its base properties.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public SpriteBase(
LayerBase layer,
double x,
double y,
double dx,
double dy,
int state,
int frame,
bool active,
Solidity solidity,
int color
)
Parameters
- layer
- Type: (Default Namespace)LayerBase
Layer that contains the sprite. - x
- Type: SystemDouble
Initial horizontal coordinate within the layer - y
- Type: SystemDouble
Initial vertical coordinate within the layer - dx
- Type: SystemDouble
Initial horizontal velocity - dy
- Type: SystemDouble
Initial vertical velocity - state
- Type: SystemInt32
Initial state - frame
- Type: SystemInt32
Initial frame within the initial state - active
- Type: SystemBoolean
Determines if the sprite is initially active - solidity
- Type: (Default Namespace)Solidity
Which solidity definition does the sprite initially react to - color
- Type: SystemInt32
Initial color modulation settings
Remarks This cannot be called directly because SpriteBase is an abstract class,
but it is called by the derived constructors on each individual sprite definition.
The sprite assumes that this is the layer to which it is added and will use it when
looking for other objects or properties in the layer.
See Also