H
Hoepilaar
Guest
I am trying to create a button that when pressed creates a GUI on the side of the room. for the GUI to be interactive, i made buttons (obj_more, obj_less) wich should spawn when the button is pressed. But when I try the code I also used for another button (wich worked) it didn 't work. I also didn 't get any errors. Here 's my code (inside left click event)
if (anyoneCouldHelp == true) {
draw_text(0, 0, "that would be awesome!");
}
Code:
global.ActiveMenu = sbuild;
global.ActiveState = 0;
//create more and less
var more = instance_create(712, 184, obj_more);
more.modGoal = BuildObj;
var less = instance_create(904, 184, obj_less);
less.modGoal = BuildObj;
draw_text(0, 0, "that would be awesome!");
}