tomlee2020
Member
create code
--------------------
---------------------
step code
--------------------
--------------------
Script5 code
------------------------
i run this code output only show "
222
1111"
"
But I think he should loop print 222 and 1111
if i do not use Script5 i change code like this
------------------------
it will loop print 222 and 1111
who can help me?is this a bug? or i do now know how to use Script? thank you!
--------------------
GML:
state="HOUTUI";
HOUTUI_state=0;
step code
--------------------
GML:
if (state=="HOUTUI") {
if (HOUTUI_state==0) {
HOUTUI_state=1;
show_debug_message("2222")
}
else {
image_index+=0.18;
show_debug_message("1111")
Script5();
//HOUTUI_state=0
}
}
Script5 code
------------------------
GML:
function Script5(){
state="HOUTUi";
HOUTUI_state=0; }
222
1111"
"
But I think he should loop print 222 and 1111
if i do not use Script5 i change code like this
GML:
if (state=="HOUTUI") {
if (HOUTUI_state==0) {
HOUTUI_state=1;
show_debug_message("2222")
}
else {
image_index+=0.18;
show_debug_message("1111")
HOUTUI_state=0
}
}
it will loop print 222 and 1111
who can help me?is this a bug? or i do now know how to use Script? thank you!
Last edited: