action camera_blur
{
my.passable = on;
my.enable_scan = on;
my.event = camera_blur;
}
view second_camera
{
pos_x = 0;
pos_y = 0;
alpha = 40; // play with this value
flags = transparent, visible;
}
function camera_blur()
{
my.event = null;
my.invisible = off;
if (event_type == EVENT_SCAN)
{
camera.transparent = on;
sleep (10);
camera.transparent = off;
camera.alpha = 30; // play with this value
second_camera.size_x = screen_size.x;
second_camera.size_y = screen_size.y;
while (1)
{
wait (2);
second_camera.x = camera.x;
second_camera.y = camera.y;
second_camera.z = camera.z;
second_camera.pan = camera.pan;
second_camera.tilt = camera.tilt;
second_camera.roll = camera.roll;
}
}
}
what i did was look at this peice of code for the action an function, and tryed chagin the code i posted at the start,
function speed_boost()
{
my.event = null;
my.invisible = off;
if (you == player)
{
added_speed = 0.3; // increase player's speed with 0.3 (from 0.9 to 1.2)
sleep (3); // for 3 seconds
added_speed = 0; // now restore the initial speed (0.9)
}
}
action speed_booster
{
my.passable = on;
my.enable_scan = on;
my.event = speed_boost;
}