JUMPING BLOCK


The Jumping Block is extremely similar to the Bullet.. It also appears randomly from the edges of the screen and can change direction once it has locked onto Jumpman. When (if) Jumpman touch's a Jumping Block then he will jump A random direction (either left, right or upwards) which may cause him to fall to his doom if he fails to land on anything..

Jumping Blocks move across the screen and can be configured to appear and fire a variety of ways.

When you create a Jumping Block, the following object graphic is drawn in the editor.. It can then be selected and moved around as per any other object. (Shown is the non-selected and selected states of the Jumping Block)

There is no limit to the number of Jumping Blocks which can be created on each level.


This Section describes the object and the properties available at design time.

When a Jumping Block is Selected, the Property Editor Window will bring up the following dialog;


Name

Sets the name of the object which is used to reference it via the Visual Basic Scriptlets. Object Names Cannot Contain any spaces and Must be unique.

It is important to note that changing the name of an object will not change any references to it via the scriptlets. Generally it would be unlikely that you would change the name of an object from the one generated by the program.

 

Sprite Image

Defines the Image set to use for rendering the Jumping Block at run-time. Selecting this item will bring down a list of all the Images available in the Image Manger (link). The Jumping Block is animated out of 16 individual Frames.. Starting at the top left, moving along the top row and then onto the second row (again Left to Right) and down onto the next row (etc..). When the Animation has finished it then repeats from the start.

 

Fire Sound

Defines the Sound to play when the Jumping Block Fires at Jumpman. Selecting this item will bring down a list of all the Sounds available in the Sound Manger (link).

 

Instant Fire @ Player

Defines the percentage for while a Jumping Block will Instantly fire at the Player from the edges of the screen.. The direction on where the Jumping Block will come from is defined by the .BulletAppear property. Setting this value to 0 will disable this feature. Valid values range from 0 to 100.

 

Min Appear Interval

Defines the Minimum time to wait (in Milliseconds) before creating a new Jumping Block on the edge of the screen.

Valid values are from 0 to a value under .MaxInterval. If a value greater than .MaxInterval is entered then .MaxInterval will automatically change to the same value (so max can never be greater than min)

The Game Engine will pick a Random Time Interval between .MinInterval and .MaxInterval to wait before creating a new Jumping Block. This is used to make the Jumping Blocks less predictable.

 

Min Appear Interval

Defines the Maximum time to wait (in Milliseconds) before creating a new Jumping Block on the edge of the screen.

Valid values are from .MinInterval to 10000 (10 seconds). If a value less than than .MinInterval is entered then .MinInterval will automatically change to the same value (so max can never be less than than min).

The Game Engine will pick a Random Time Interval between .MinInterval and .MaxInterval to wait before creating a new Jumping Block. This is used to make the Jumping Block less predictable.

 

AppearsFrom

Defines the direction in which the Jumping Block first Appears from the Edge of the Screen. Valid Values are;

AppearTop Will Only Appear from the Top of the Screen and will move Downwards.
AppearLeft Will Only Appear from the Left edge of the Screen and will move towards the Right edge.
AppearRight Will Only Appear from the Right edge of the Screen and will move towards the Left edge.
AppearBottom

Will Only Appear from the Bottom of the Screen and will move Upwards.

AppearRandom Will Pick a Random Direction from AppearTop, AppearLeft, AppearRight and AppearBottom.

 

Random Diagonal Direction

Not Implemented Yet.

 

Fire Condition

Defines the Condition in which the Jumping Block will Fire at the Player. Valid Values are;

FireHoizontal The Jumping Block will only Fire Left or Right when it has a Vertical Lock onto the Player.
FireVertical The Jumping Block will only Fire Upwards or Downwards when it has a Horizontal Lock onto the Player.
FireDoesnt The Jumping Block Doesn't Fire at All.. I will just move across the Screen.
FireHorzAndVert

The Jumping Block will fire towards the Player on either a Vertical or Horizontal Lock

FireRandom Will Pick a Random Condition from FireHoizontal, FireVertical, FireDoesnt and FireHorzAndVert


This Section describes the object and how it can accessed and controlled via the scriptlets at run-time. Please refer to the Bomb on more information about scriptlets.

A Method is a function call which can be executed whilst a Property changes the state of a individual flag in the object.

 

There are currently no script accessible Methods for Jumping Block's.

 

.FireAtPlayerPercent

Changes the Percentage at which a Jumping Block will instantly fire at the player. Valid values are from 0 to 100.

Script Example..

JumpingBlock1.FireAtPlayerPercent = 50

You can also make the Jumping Block progressively fire more constantly at the player by increasing the fire percentage on the collection of each Bomb.

Example (put in each Bomb Scriptlet)..

JumpingBlock1.FireAtPlayerPercent = JumpingBlock1.FireAtPlayerPercent + 5