Hello, I am new to JS and I am trying to get the function to see my var number so my param can use the value.
I can confirm that the var is writing to the console.
I am sure I am missing something but not sure what I am doing wrong.
I can confirm that the var is writing to the console.
I am sure I am missing something but not sure what I am doing wrong.
JavaScript:
(function(){
var params = PluginManager.parameters("IGH_OffSet");
//var text = params["Text Param"];
var number = params["Number Param"];
Game_Player.prototype.centerY = function() {
var y =(Graphics.height / $gameMap.tileHeight() - 1) / 2.0;
y += number;
return y;
};
//console.log(text);
console.log(number);
})();