Someone You Might Know
Member
Hi, good people.
Today, I faced a weird error, which is in the title.
Full error log:
This is the full code:
Sorry if it is a futile error, but I have just started programming, and I really can't find what is wrong here.
I await a response. c:
OBS: I am using the latest version of GMS 2.
Today, I faced a weird error, which is in the title.
Full error log:
Code:
___________________________________________
############################################################################################
ERROR in
action number 1
of Step Event0
for object obj_menu:
local variable xorigin(100011) not set before reading it.
at gml_Object_obj_menu_Step_0 (line 10) - var _move = _up - _down
############################################################################################
gml_Object_obj_menu_Step_0 (line 10)
Code:
///@desc basic menu stuff
#region //get input
var _up keyboard_check_pressed(vk_up)
var _down keyboard_check_pressed(vk_down);
var _back keyboard_check_pressed(vk_escape);
var _select keyboard_check_pressed(vk_enter);
#endregion
#region //move index
var _move = _up - _down
if _move != 0{
index += _move;
}
#endregion
I await a response. c:
OBS: I am using the latest version of GMS 2.
Last edited: