Hello everyone. I am new here, and new to programming (but did not start for RPG Maker).
I'd appreciate if someone could help me here.
I am working on a plugin that needs to do continuous checks.
So far, it only executes once.
Would it be wise to insert it into an infinite loop with a timer (to don't crash the game)?
More details on the plugin:
The plugin calculates the distance between the player an all events on the map containing a proper note.
It will then activate the Event's Self Switch, so it changes the Event's page. Right now, i am using the other page to make the monster try to catch the player and then it would start a battle.
So i need to constantly check the distance between the player and the events, because the player and the event may move around.
I'd appreciate if someone could help me here.
I am working on a plugin that needs to do continuous checks.
So far, it only executes once.
Would it be wise to insert it into an infinite loop with a timer (to don't crash the game)?
More details on the plugin:
The plugin calculates the distance between the player an all events on the map containing a proper note.
It will then activate the Event's Self Switch, so it changes the Event's page. Right now, i am using the other page to make the monster try to catch the player and then it would start a battle.
So i need to constantly check the distance between the player and the events, because the player and the event may move around.