S
Spiralnord
Guest
Howdy,
I'm working on a project in GameMaker: Studio and I'm already stuck.
The code is supposed to be simple, this is what is has to do:
If you click ten times on a button, a window will pop up telling you to stop it. The code resets after the window appears.
This is the code I've got:
clicks = 0;
if mouse_check_button_pressed(mb_left) {
if (clicks < 10) {
clicks += 1;
}
else {
show_message("Stop it, lad.");
}
}
Nothing happens after I click it a bunch of times. Help?
I'm working on a project in GameMaker: Studio and I'm already stuck.
The code is supposed to be simple, this is what is has to do:
If you click ten times on a button, a window will pop up telling you to stop it. The code resets after the window appears.
This is the code I've got:
clicks = 0;
if mouse_check_button_pressed(mb_left) {
if (clicks < 10) {
clicks += 1;
}
else {
show_message("Stop it, lad.");
}
}
Nothing happens after I click it a bunch of times. Help?