int Character.BlockingWidth
Gets/sets the object's blocking width.
The blocking width determines how large of a blocking rectangle the object exerts to
stop characters walking through it. If this is set to 0 (the default), then the
blocking rectangle is automatically calculated to be the object's width, and 5 pixels
high.
You can manually change the setting by entering a blocking width in pixels, which is the
size of walkable area that the object effectively removes by being there.
NOTE: This property has no effect unless the Solid property
is set to true.
Example:
oRock.BlockingWidth = 50;
will make the Rock object block 50 pixels wide (25 pixels to the left of his centre, and 25 to the right)
See Also: Object.BlockingHeight,
Object.Solid
|