R
Re_hei
Guest
There was a 'execute_string' function before game maker: studio. (~8.1)
I need its function, but in game maker: studio and studio 2, there is no 'execute_string'.
Is there any replacement of this function?
Like this;
scr_text = "global.hp -= 1";
When 'execute_string' exists, 'execute_string(scr_text)' is same as writing 'global.hp -= 1'.
I need this function because of executing commands in my text engine.
It works like
message[0] = "/f[spr_smile]I like /c[c_white]pancakes/c[c_black]/n because of/s[bgm_shiny]/v[global.hp +=1] its sweety/i[obj_npc1] taste!/x[scr_flash]"
/f[spr_smile] will change the sprite as 'spr_smile',
/c[c_white] will change the color of text as white,
/s[bgm_shiny] will play the music 'bgm_shiny',
/v[global.hp += 1] will execute the code 'global.hp +=1'
/i[obj_npc1] will create the instance of 'obj_npc1',
/x[scr_flash] will execute the script 'scr_flash' and so on...
I need its function, but in game maker: studio and studio 2, there is no 'execute_string'.
Is there any replacement of this function?
Like this;
scr_text = "global.hp -= 1";
When 'execute_string' exists, 'execute_string(scr_text)' is same as writing 'global.hp -= 1'.
I need this function because of executing commands in my text engine.
It works like
message[0] = "/f[spr_smile]I like /c[c_white]pancakes/c[c_black]/n because of/s[bgm_shiny]/v[global.hp +=1] its sweety/i[obj_npc1] taste!/x[scr_flash]"
/f[spr_smile] will change the sprite as 'spr_smile',
/c[c_white] will change the color of text as white,
/s[bgm_shiny] will play the music 'bgm_shiny',
/v[global.hp += 1] will execute the code 'global.hp +=1'
/i[obj_npc1] will create the instance of 'obj_npc1',
/x[scr_flash] will execute the script 'scr_flash' and so on...