最近要拿gms2做个剧情游戏在联欢会上整活,结果做到这里发现
___________________________________________
############################################################################################
ERROR in
action number 1
of Draw Event
for object obj_par_textbox:
Unable to find instance for object index 17
at gml_Object_obj_par_textbox_Draw_0 (line 183) - if(myrecord.show == false){
############################################################################################
gml_Object_obj_par_textbox_Draw_0 (line 183)
他说这个是找不到实例对象,但是我当时填的这一串代码是可以用的,这个是什么问题导致的?
这个是从
if(myrecord.show == false){
if(GAME.NowState == game_state.cross and !pause){
if(!instance_exists(obj_objection)){
draw_set_font(fnt_tip);
draw_set_color(c_gray);
draw_rectangle(room_width - string_width("Q 追问")- string_width("Tab 法庭记录"),room_height - string_height("Q 追问"),room_width- string_width("Tab 法庭记录"),room_height ,0);
draw_set_color(c_white);
draw_text(room_width - string_width("Q 追问")- string_width("Tab 法庭记录"),room_height - string_height("Q 追问"),"Q 追问");
}
}
}
if(GAME.NowState == game_state.cross and !pause){
if(myrecord.show == true){
draw_set_font(fnt_tip);
draw_set_color(c_gray);
draw_rectangle(room_width - string_width("E 出示") - string_width("Tab 法庭记录"),room_height - string_height("Q 追问"),room_width- string_width("Tab 法庭记录"),room_height ,0);
draw_set_color(c_white);
draw_text(room_width - string_width("E 出示") - string_width("Tab 法庭记录"),room_height - string_height("E 出示"),"E 出示");
}
}
if(myrecord.require){
draw_set_font(fnt_tip);
draw_set_color(c_gray);
draw_rectangle(room_width - string_width("E 出示") - string_width("Tab 法庭记录"),room_height - string_height("Q 追问"),room_width- string_width("Tab 法庭记录"),room_height ,0);
draw_set_color(c_white);
draw_text(room_width - string_width("E 出示") - string_width("Tab 法庭记录"),room_height - string_height("E 出示"),"E 出示");
}
到这里
___________________________________________
############################################################################################
ERROR in
action number 1
of Draw Event
for object obj_par_textbox:
Unable to find instance for object index 17
at gml_Object_obj_par_textbox_Draw_0 (line 183) - if(myrecord.show == false){
############################################################################################
gml_Object_obj_par_textbox_Draw_0 (line 183)
他说这个是找不到实例对象,但是我当时填的这一串代码是可以用的,这个是什么问题导致的?
这个是从
if(myrecord.show == false){
if(GAME.NowState == game_state.cross and !pause){
if(!instance_exists(obj_objection)){
draw_set_font(fnt_tip);
draw_set_color(c_gray);
draw_rectangle(room_width - string_width("Q 追问")- string_width("Tab 法庭记录"),room_height - string_height("Q 追问"),room_width- string_width("Tab 法庭记录"),room_height ,0);
draw_set_color(c_white);
draw_text(room_width - string_width("Q 追问")- string_width("Tab 法庭记录"),room_height - string_height("Q 追问"),"Q 追问");
}
}
}
if(GAME.NowState == game_state.cross and !pause){
if(myrecord.show == true){
draw_set_font(fnt_tip);
draw_set_color(c_gray);
draw_rectangle(room_width - string_width("E 出示") - string_width("Tab 法庭记录"),room_height - string_height("Q 追问"),room_width- string_width("Tab 法庭记录"),room_height ,0);
draw_set_color(c_white);
draw_text(room_width - string_width("E 出示") - string_width("Tab 法庭记录"),room_height - string_height("E 出示"),"E 出示");
}
}
if(myrecord.require){
draw_set_font(fnt_tip);
draw_set_color(c_gray);
draw_rectangle(room_width - string_width("E 出示") - string_width("Tab 法庭记录"),room_height - string_height("Q 追问"),room_width- string_width("Tab 法庭记录"),room_height ,0);
draw_set_color(c_white);
draw_text(room_width - string_width("E 出示") - string_width("Tab 法庭记录"),room_height - string_height("E 出示"),"E 出示");
}
到这里