Šeit būs kodi kas jums jāzina. [pamat krāsas]
c_aqua
c_black
c_blue
c_dkgray
c_fuchsia
c_gray
c_green
c_lime
c_ltgray
c_maroon
c_navy
c_olive
c_orange
c_purple
c_red
c_s ilver
c_teal
c_white
c_yellow
[pogas]
vk_nokey
vk_anykey
vk_left
vk_right
vk_up
vk_down
vk_enter
vk_escape
vk_space
vk_shift
vk_control
vk_alt
vk_backspace
vk_ ta b
vk_home
vk_end
vk_delete
vk_insert
vk_pageup
vk_pagedown
vk_pause
vk_printscreen
vk_f1 ... vk_f12
vk_numpad0 ... vk_numpad9
vk_multiply
vk_divide
vk_add
vk_subtract
vk_decimal
PIEMĒRS
Code
{
if (keyboard_check(vk_left)) x -= 4;
if (keyboard_check(vk_right)) x += 4;
if (keyboard_check(vk_up)) y -= 4;
if (keyboard_check(vk_down)) y += 4;
}
JEB AR BURTIEM
Code
{
if (keyboard_check(ord('A'))) x -= 4;
if (keyboard_check(ord('D'))) x += 4;
if (keyboard_check(ord('W'))) y -= 4;
if (keyboard_check(ord('S'))) y += 4;
}
Kā lietot pogas
keyboard_check(key) Turot pogu
keyboard_check_pressed(key) Nospiezot pogu
keyboard_check_released(key) Atlaižot pogu
[Peles pogas]
mb_none
mb_left
mb_middle
mb_right
Kur lietot
mouse_check_button(numb)
mouse_check_button_pressed(numb)
mouse_check_button_released(numb)
Paldies ka lasijāt. :king: