This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///PC users or PS4 Input | |
if os_type == os_windows || os_ps4 || os_xboxone | |
{ | |
if gamepad_button_check_any(global.gpDevice) | |
{ | |
global.KBMuser = false; | |
} | |
if keyboard_check(vk_anykey) || mouse_check_button(mb_any) | |
{ | |
global.KBMuser = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///setup_input(run in a create event!) | |
//gamepads | |
var gp_num = gamepad_get_device_count(); | |
for (var i = 0; i < gp_num; i++;) | |
{ | |
if gamepad_is_connected(i) | |
{ | |
alert("DEBUG: "+ string(gamepad_get_description(i)),0) | |
} | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///alert(level[0 to 3],message) | |
var level = argument0; | |
var text = argument1; | |
{ | |
switch (argument0) | |
{ | |
case 0: show_debug_message("DEBUG: "+text); break; | |
case 1: show_debug_message("ERROR: "+text); break; | |
case 2: show_message("ALERT: "+text); break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///audio_play(listener,snd_filename,fade in time[ms],loop?) | |
var listener = argument0; | |
var sfx = argument1; | |
var time = argument2; | |
var loop = argument3; | |
if gamepad_is_connected(listener) | |
{ | |
sfx = audio_play_sound_on(listener, sfx, loop, 0); | |
} | |
else if listener == noone || listener == -1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///setup_audio(); | |
var lc = audio_get_listener_count(); | |
var masks; | |
masks[0] = 0; | |
masks[1] = 0; | |
masks[2] = 0; | |
masks[3] = 0; | |
alert("Number of Audio Listeners: " + string(lc),0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///draw_fade_color(color,speed/alplha) | |
alert(0,"Fading..." + "(" + (string(color_fade_alpha)) +"). Cannot pause game." ) | |
can_pause = false; | |
depth = -100000 | |
var snapped = color_fade_alpha//= floor(color_fade_alpha * 10)/10 | |
draw_set_colour(argument0) | |
draw_set_alpha(snapped); | |
draw_rectangle(0, 0, view_xview [0] + view_wview[0], view_yview[0] + view_hview[0], false); | |
draw_set_blend_mode_ext(bm_src_colour,bm_zero); |
NewerOlder