Hi people!
I'm testing a function that only execute when the player moves, and I want to check how many times it is called.
So I put two console logs in different places.
One in SceneMap Update:
if($gameplayer.isMoving(){
console.log("times")}
Other in Game_Player increase Steps:
console.log("$gamePlayer.increasesteps")
So, according to this, times are called 15 times per moving. And $gamePlayer.increasesteps only once.
Did I get it right?
There is another way to check how many times a function is executed?
I'm testing a function that only execute when the player moves, and I want to check how many times it is called.
So I put two console logs in different places.
One in SceneMap Update:
if($gameplayer.isMoving(){
console.log("times")}
Other in Game_Player increase Steps:
console.log("$gamePlayer.increasesteps")
So, according to this, times are called 15 times per moving. And $gamePlayer.increasesteps only once.
Did I get it right?
There is another way to check how many times a function is executed?

