Hi.
I have an old code from my friends which function is to simply change actor home formation.
The code as follow:
Is it possible to remove the
So I can just directly use
Thank you very much for any help.
I have an old code from my friends which function is to simply change actor home formation.
The code as follow:
Code:
function _p(o){ return o[pluginName] = o[pluginName] || {} };
var _alias_Sprite_Actor_setActorHome = Sprite_Actor.prototype.setActorHome;
Sprite_Actor.prototype.setActorHome = function(index) {
_alias_Sprite_Actor_setActorHome.call(this, index);
var homeX = _p($gameSystem).x ? _p($gameSystem).x : actorHomeX;
var homeY = _p($gameSystem).y ? _p($gameSystem).y : actorHomeY;
this.setHome(eval(homeX), eval(homeY));
};
Is it possible to remove the
Code:
function _p(o){ return o[pluginName] = o[pluginName] || {} };
So I can just directly use
Code:
var _alias_Sprite_Actor_setActorHome = Sprite_Actor.prototype.setActorHome;
...
...
Thank you very much for any help.