Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

I'm an MZ kinda guy :)

Hi there!

I will not change the plugin for this, but I may be able to help you another way. I edited the function that creates the timer text and removed the ":" as you asked. Install this patch right below my plugin.

https://1drv.ms/u/s!Ak26Cghab3NhhpFpIiY9ir9DUg7TDw?e=P3TPRb

Tell me if it worked!

TypeError

Plugin.param is not a function :)

Ops, my bad!

See this now:

https://1drv.ms/u/s!Ak26Cghab3NhhpFpIiY9ir9DUg7TDw?e=lLJRYm

Sorry to be a burden, the formatting i was hoping for is Hours : Minutes : Seconds . Milliseconds

So time looks like this 0:00:00.12

Gosh. I tough it will be something like this with my changes:

  • 00:00:0000

So you want it like this? Including the points?

  • Hours : Minutes : Seconds . Milliseconds (00:00:00.00) ?

I understand almost nothing about SQL, can you tell me exactly why you need that? Maybe there is a way to use javascript and format it differently on your side?

Yup that's correct, I'll take a look to see if I can edit it before uploading it.

All I really know is that if it's : instead of a . I then have to reformat the sql cell to allow decimal or no time shows up at all, and if I don't modify it so there's a fullstop between second and millisecond then the millisecond will always just appear 00

You had anymore luck with this?

Hey! Sorry about that, I forgot about this. See if this second patch it will work. Put below my timer plugin.

https://1drv.ms/u/s!Ak26Cghab3NhhpF635BUcZaKv_YTvg?e=3DRVkh

If it does not, you can open the patch with any text file and try to edit it yourself:

So the first 4 functions are just to format their unit time to a text format. There is a method called "padZero(NUMBER)" on them. The number you insert between their parenthesis will be the number of ZEROS or Numbers shown on the timer. By default, they are all 2. But I put the hour to 1 according to your last example.

Now on the create text function where the plugin will get all time units and create the timer text. There are 3 red dots. Each one points to you where it does have the "separator" text between each unit. You can change them to whatever you want.

(4 edits)

It looks perfect, however for some reason the millisecond number doesn't show.

Can't figure out why. Mega weird. :) I put a colon or no punctuation between ${this.getTextForSeconds()} and ${this.getTextForMilliseconds()}` it will show milliseconds,  if I use any punctuation , . ! etc. it will not work.

Could it have something to do with lines 498 - 516 in the plugin? I haven't the foggiest :D

Adding to the weird and wonderful... if I create an event and use the command $gameTimer.getText() it will show the milliseconds after the fullstop.