- Joined
- Jan 5, 2021
- Messages
- 8
- Reaction score
- 1
- First Language
- Portuguese
- Primarily Uses
- RMMV
JavaScript:
var _Scene_Map_onMapLoaded_base = Scene_Map.prototype.onMapLoaded;
Scene_Map.prototype.onMapLoaded = function () {
_Scene_Map_onMapLoaded_base.call(this);
//code
}
I have been using this on some plugins where i need to execute after the map is loaded (events created).
I guess i am inserting code between, or before the onMapLoaded..
don't really know..
I would love if someone could explain me exactly what is going on here.
Step by step, like if i was using the debugger (i tryed this), what am i doing here? is this like a middleware?
Last edited: