Hello there!
I'm making a game and i have this functions:
It's works very well but i don't know if this is correct.
Some one have any idea?
I'm making a game and i have this functions:
Code:
Game_Event.prototype.respawn= function() {
$gameMap._events[this._eventId] = new Game_Event($gameMap._mapId, this._eventId);
SceneManager._scene.children[0]._tilemap.addChild(new Sprite_Character($gameMap._events[this._eventId]));
}
Game_Event.prototype.death= function() {
this.erase();
}
It's works very well but i don't know if this is correct.
Some one have any idea?