- Joined
- Sep 9, 2016
- Messages
- 12
- Reaction score
- 3
- First Language
- English
- Primarily Uses
Hello,
I am new to javascript, and I currently have a .js file with
//Game_System variables and functions
Game_System.prototype.variable = "value";
Game_System.prototype.print_variable = function(){
console.log(this.variable);
}
I try to make a call to the function in RPG Maker MV
$gameSystem.print_variable();
,and I get an error message reading
Undefined is not a function.
I'm not entirely sure what I'm doing wrong, but any help would be greatly appreciated.
Thank you.
I am new to javascript, and I currently have a .js file with
//Game_System variables and functions
Game_System.prototype.variable = "value";
Game_System.prototype.print_variable = function(){
console.log(this.variable);
}
I try to make a call to the function in RPG Maker MV
$gameSystem.print_variable();
,and I get an error message reading
Undefined is not a function.
I'm not entirely sure what I'm doing wrong, but any help would be greatly appreciated.
Thank you.
Last edited by a moderator:

