Consider the following:
var spriteCharacterInitializeMethod = Sprite_Character.prototype.initialize;Sprite_Character.prototype.initialize = function(character) { spriteCharacterInitializeMethod.call(this, arguments);};
This breaks the game, because of some .bind cannot be called. How do you alias (override) methods that require a parameter to be passed in?
Doing:
var spriteCharacterInitializeMethod = Sprite_Character.prototype.initialize;Sprite_Character.prototype.initialize = function(character) { spriteCharacterInitializeMethod.call(this, arguments);};Doesn't break the game, but A) character is undefined, and 😎 other issues arise doing this ...
var spriteCharacterInitializeMethod = Sprite_Character.prototype.initialize;Sprite_Character.prototype.initialize = function(character) { spriteCharacterInitializeMethod.call(this, arguments);};
This breaks the game, because of some .bind cannot be called. How do you alias (override) methods that require a parameter to be passed in?
Doing:
var spriteCharacterInitializeMethod = Sprite_Character.prototype.initialize;Sprite_Character.prototype.initialize = function(character) { spriteCharacterInitializeMethod.call(this, arguments);};Doesn't break the game, but A) character is undefined, and 😎 other issues arise doing this ...