Real time in-game tracker

Marmelada

Villager
Member
Joined
Dec 13, 2017
Messages
13
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hi all,

I need a couple of plugins for a project I'm working on, but couldn't find any that do exactly what we need.

One thing we need is a way to know at what point in real time the players were in a certain area, because we need to synchronise their position with the data our other machine records. If you're not sure what I mean, this thread for the main plugin we need could provide a bit of background. What we thought is we could send a trigger to our other machine at certain points. Most importantly, we need a precise time signal when players start the game, not when the code first runs, but when they press play in the title screen or even better when the world loads and puts them in control of the character. After that we would like to have a signal sent from the machine running the game to this other machine running something else, because we need to synchronise them afterwards. For example, every minute or every five minutes, depending on what we need, the game sends a special trigger to our other machine. That way we would have a reference say at time point t=60s the player was in coordinates (x,y), that's all we need.

I found a couple of plugins that sort of seem like they could potentially help, but none of them do exactly what we need in a reliable way. E.g. ICF-Soft Time Utility seems promising. It actually might be exactly what we need for tracking real time, and maybe we wouldn't need the trigger to the parallel machine if it's reliable, but it depends if we can have it run at the precise point we need (when the game loads after pressing start in the title screen). We might need to test that, but if anyone already know how it works and whether it can fit our needs please let me know. :)

Again, any suggestions are very welcome!

TL;DR - we need a plugin that either records real time in-game starting from when the player gains control after title screen, until the software closes or they reach the game end (short game), or have a trigger repeatedly sent from the game to a parallel machine every t=x (in seconds) in which we can manipulate x.
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,439
First Language
French
Primarily Uses
RMMV
withOut plugin you can use a easy interval update
PHP:
var reelTimeX, reelTimeY;
setInterval(function(){
   reelTimeX = $gamePlayer._realX;
   reelTimeY = $gamePlayer._realY;
console.log('x:',reelTimeX, ' y:',reelTimeY );
 }, 100); // 1000ms = 1second
https://www.w3schools.com/jsref/met_win_setinterval.asp
 

Marmelada

Villager
Member
Joined
Dec 13, 2017
Messages
13
Reaction score
1
First Language
English
Primarily Uses
RMMV
Thanks for the link @Jonforum! It doesn't necessarily need to be a plugin, we just need the function, so code works as well. I'll try to adjust it to our ideas.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top