|
1
|
xscroll += xscrollspeed;
|
|
2
|
yscroll += yscrollspeed;
|
|
3
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
4
|
{
|
|
5
|
if (keyboard_check_pressed(ord("1")))
|
|
6
|
desiredImageAlpha = 0;
|
|
7
|
if (keyboard_check_pressed(ord("2")))
|
|
8
|
desiredImageAlpha = 1;
|
|
9
|
if (keyboard_check_pressed(ord("8")))
|
|
10
|
{
|
|
11
|
yscrollspeed = 0.5;
|
|
12
|
scr_debug_printscr_debug_print
function scr_debug_print(arg0)
{
}
function print_message(arg0)
{
}
function debug_print(arg0)
{
}
function scr_debug_clear_all()
{
} ("Bg speed set to 15fps");
|
|
13
|
}
|
|
14
|
if (keyboard_check_pressed(ord("9")))
|
|
15
|
{
|
|
16
|
yscrollspeed = 2/3;
|
|
17
|
scr_debug_printscr_debug_print
function scr_debug_print(arg0)
{
}
function print_message(arg0)
{
}
function debug_print(arg0)
{
}
function scr_debug_clear_all()
{
} ("Bg speed set to 20fps (will stutter)");
|
|
18
|
}
|
|
19
|
if (keyboard_check_pressed(ord("0")))
|
|
20
|
{
|
|
21
|
yscrollspeed = 1;
|
|
22
|
scr_debug_printscr_debug_print
function scr_debug_print(arg0)
{
}
function print_message(arg0)
{
}
function debug_print(arg0)
{
}
function scr_debug_clear_all()
{
} ("Bg speed set to 30fps");
|
|
23
|
}
|
|
24
|
}
|
|
25
|
image_alpha = lerp(image_alpha, desiredImageAlpha, fadelerpspeed);
|
|
26
|
draw_sprite_tiled_ext(sprite_index, yscroll, camerax() + xscroll, cameray() + yscroll, 2, 2, c_white, image_alpha);
|