key_left = keyboard_check(vk_left);
key_right = keyboard_check(vk_right);
key_jump = keyboard_check_pressed(vk_space);
var move = key_right - key_left;
hsp = move * walksp;
// Проверяем столкновение с стеной
if (place_meeting(x+hsp,y,oWall))
{
while (!place_meeting(x+sign(hsp), y, oWall))
{
x = x + sign(hsp);
}
hsp = 0;
}
x = x + hsp;
___________________________________________
############################################################################################
ERROR in action number 1
of Step Event0 for object Ob_player:
Variable <unknown_object>.oWall(100011, -2147483648) not set before reading it.
at gml_Object_Ob_player_Step_0 (line 10) - if (place_meeting(x+hsp,y,oWall))
############################################################################################
gml_Object_Ob_player_Step_0 (line 10)
вот код
key_left = keyboard_check(vk_left);
key_right = keyboard_check(vk_right);
key_jump = keyboard_check_pressed(vk_space);
var move = key_right - key_left;
hsp = move * walksp;
if (place_meeting(x+hsp,y,oWall))
{
while (!place_meeting(x+sign(hsp), y , oWall))
{
x = x + sign(hsp);
}
hsp = 0;
}
x = x + hsp;
пытаюсь решить не получается