Люди . В ГеймМэйкере 2.3.2.560 выводит ошибку:
ERROR in
action number 1
of Key Press Event for Key
for object Player:
Variable Player.enemyX(100053, -2147483648) not set before reading it.
at gml_Object_Player_KeyPress_32 (line 1) - if ((playerX - enemyX = 40 or enemyX - playerX = 40) || (playerY - enemyY = 40 or enemyY - playerY = 40)) {
gml_Object_Player_KeyPress_32 (line 1)
вот код который выполняется при нажатии пробела:
if ((playerX - enemyX < 40 or enemyX - playerX < 40) || (playerY - enemyY < 40 or enemyY - playerY < 40)) {
enemyHP -= 3;
}