so i'm following a tuto ! and i'm stuck at a dialogue box episode ! and i tried to fix the error but i'm to new to this and i don't know where the error is ! if you could help me it would mean a lot to me !
so the error is :
local variable _txtb_x(100067) not set before reading it.
at gml_Object_Obj_textbox_Draw_0 (line 94) - draw_sprite_ext(txtb_spr, txtb_img, _txtb_x, _txtb_y, Textboxwidth/txtb_spr_w, Textboxheight/txtb_spr_h, 0, c_white, 1);
and around the line is that
var _txtb_x = textbox_x + text_x_offset[page];
var _txtb_y = textbox_y;
txtb_img += txtb_img_spd;
txtb_spr_w = sprite_get_width(txtb_spr);
txtb_spr_h = sprite_get_height(txtb_spr)
draw_sprite_ext(txtb_spr, txtb_img, _txtb_x, _txtb_y, Textboxwidth/txtb_spr_w, Textboxheight/txtb_spr_h, 0, c_white, 1); <- line 94
if somone could help me it would mean a lot !
so the error is :
local variable _txtb_x(100067) not set before reading it.
at gml_Object_Obj_textbox_Draw_0 (line 94) - draw_sprite_ext(txtb_spr, txtb_img, _txtb_x, _txtb_y, Textboxwidth/txtb_spr_w, Textboxheight/txtb_spr_h, 0, c_white, 1);
and around the line is that
var _txtb_x = textbox_x + text_x_offset[page];
var _txtb_y = textbox_y;
txtb_img += txtb_img_spd;
txtb_spr_w = sprite_get_width(txtb_spr);
txtb_spr_h = sprite_get_height(txtb_spr)
draw_sprite_ext(txtb_spr, txtb_img, _txtb_x, _txtb_y, Textboxwidth/txtb_spr_w, Textboxheight/txtb_spr_h, 0, c_white, 1); <- line 94
if somone could help me it would mean a lot !