I'm trying to make my own parallel method in javascript (same as parallel event) on Scene_Map. However, on Scene_Map's update() method, it seems like it executes console.log per frame. What will I do so that it executes console.log per 60 frames?
And also, is there a thread that answers small questions like this? I don't think this question deserves its own thread. Thanks in advance!
Here's my code:
And also, is there a thread that answers small questions like this? I don't think this question deserves its own thread. Thanks in advance!
Here's my code:
JavaScript:
_alias_scene_map_update = Scene_Map.prototype.update;
Scene_Map.prototype.update = function()
{
_alias_scene_map_update.call(this);
if(Input.isTriggered("openGambitMenu")) SceneManager.push(SceneGambit);
console.log('what');
}