Randomize position and speed at runtime
When you add a sprite its position and speed (if any) are fixed and will be kept at runtime. It could be useful to randomize these values at runtime. As a result, sprite initial position, speed and direction will be different each time the screensaver starts.
Randomize the initial position of the sprite
1. Select the sprite in the Screensaver Document window.
2. Right-click and choose Properties.
3. Click on the Size and Position tab.
4. In the Absolute Position group, click to choose the Random Position option. The two above values will be ignored at runtime and the sprite will be displayed anywhere on screen at each runtime.
Randomize the speed and direction of the sprite
1. Select the sprite in the Screensaver Document window.
2. Right-click and choose Properties.
3. Click on the Motion tab.
4. In the Speed group, click to choose the Randomize Speed option.
5. In the Horz and Vert fields, enter the random ranges. The initial random speed is calculated by a random number, between 0 and the value you specify (0-500), being added to or subtracted from the Initial Speed for horizontal and vertical respectively
Remarks
A value smaller than the Initial Horizontal Speed will give the sprite a random speed but maintain the direction. Example: Initial=100, Random=80. This will give you a random speed from 20 to 180, always moving from left to right.
A value larger than the Initial Horizontal Speed will give the sprite a random speed and direction. Example: Initial=0, Random=100. This will give you a random speed from -100 to +100. Positive values move the sprite from left to right and negative values move the sprite right to left.
A value of 'zero' will add no random value to the Initial Horizontal Speed and therefore have no effect, effectively turning the feature off..
A value smaller than the Initial Vertical Speed will give the sprite a random speed but maintain the direction. Example: Initial=100, Random=80. This will give you a random speed from 20 to 180, always moving from top to bottom.
A value larger than the Initial Vertical Speed will give the sprite a random speed and direction. Example: Initial=0, Random=100. This will give you a random speed from -100 to +100. Positive values move the sprite from top to bottom and negative values move the sprite bottom to top.
A value of ‘zero’ will add no random value to the Initial Vertical Speed and therefore have no effect, effectively turning the feature off.