B
borthrop
Guest
I'm having trouble getting my JavaScript extension working. It's my first one, so I'm starting off super simple: I want it to print the word "Left" to the compiler window when I hit the left arrow key. The entirety of the JavaScript file is
In the object that has the "press <Left>" event, the code is
Right now, this prints "0" (the number zero) when I hit the left arrow. It also prints "0" when my code is show_debug_message(return_left());
In Extension Function Preferences, Name is return_left and External Name is return_left. The Return Type is string.
I'm using GameMaker: Studio version 1.4.1772
Any thoughts on what I'm doing wrong?
Code:
function return_left() {
return "Left";
}
Code:
message = return_left();
show_debug_message(message);
In Extension Function Preferences, Name is return_left and External Name is return_left. The Return Type is string.
I'm using GameMaker: Studio version 1.4.1772
Any thoughts on what I'm doing wrong?