C
corwin22
Guest
I am trying to make it so that I use a script to call a block with custom commands using this script
/// Scr_CustomBlock("Create","Step")
instance_create_layer(64,64,"Funtions",obj_CustomBlock)
global.CustomCreate = argument0;
global.CustomStep = argument1;
and the object uses this
string_letters(global.CustomStep)
inside the step event
I type
Scr_CustomBlock((undefined),("if (keyboard_check(vk_space)) {game_end()}"))
and it doesn't do anythng when i press space?
/// Scr_CustomBlock("Create","Step")
instance_create_layer(64,64,"Funtions",obj_CustomBlock)
global.CustomCreate = argument0;
global.CustomStep = argument1;
and the object uses this
string_letters(global.CustomStep)
inside the step event
I type
Scr_CustomBlock((undefined),("if (keyboard_check(vk_space)) {game_end()}"))
and it doesn't do anythng when i press space?