D
Darren
Guest
So the below code works, and is in the key press - any section of the object (making a rebinding system)
But if I want to be able to change the global key I'm changing, it doesn't work, ie create the key change object from my menu with
or something like that and then the below code in the object I create
Why is it not changing my global variable like it does when I reference it directly? I want it to be a variable I change so I can create one object for many global key changes, rather than a new object for each one.
Thanks all!
GML:
var n_key = keyboard_key;
if (n_key != vk_escape)
{
global.key_down = n_key;
}
GML:
i = instance_create_layer(x,y,"Instances", obj_key_controller);
i.new_ = global.key_u;
GML:
var n_key = keyboard_key;
if (n_key != vk_escape)
{
new_ = n_key;
}
Thanks all!