STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
239
Reaction score
57
First Language
spanish
Primarily Uses
RMMV
I want reduce the space between digits of popup. As you see in the below image the space between digits are to long. i need a more smaller separation. Any advise?
 

Attachments

  • crystalcave.png
    crystalcave.png
    409.6 KB · Views: 3
Last edited:

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
239
Reaction score
57
First Language
spanish
Primarily Uses
RMMV
A Crystal will Rebouce!!
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
1,302
Reaction score
696
First Language
English
Primarily Uses
RMMV
You'll need to say (and link to) what plugin you're using to modify your popups to get help with your question - mine using the default engine don't look like that.
 

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
239
Reaction score
57
First Language
spanish
Primarily Uses
RMMV
I use a Mog plugin, Mog damage popup, but the space between digits is because an effect of glow in my number, seems similar with the default popup engine. So can help me to reduce the space using Js?
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
Could you please confirm if this problem only happens when you have digits with number 1 or in all cases?

For example:
10
21
12
112
 

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
239
Reaction score
57
First Language
spanish
Primarily Uses
RMMV
Yes, see this image below
Screenshot (201).png
The 1 is the most conflict number, other are fine.. but i want their a bit more closer
Screenshot (196).png
 
Last edited:

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
I think I expressed myself poorly.
I meant that they don't contain the numeral 1
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
The spacing may not be in the plugin, but in the images, because if you replace them with another smaller style it will adapt itself.
 
Last edited:

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
239
Reaction score
57
First Language
spanish
Primarily Uses
RMMV
Yeah I know, but I need make this because the image number are perfect for my game, I want reduce the space whit js.... I needed it
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
Can you send me the images just for me to analyze?
I don't have this script, but I'll download it to see, probably one image will overlay the other causing a wrong visual effect.
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
I followed the Plugin's instruction to make sure everything went fine:
It is necessary for the image to have the height divided by 8 for the images to be aligned.

É necessário que a imagem tenha a altura dividida por 8 para que as imagens fiquem alinhadas. (O padrão é 5)

By my tests the offset margin is exactly 1 pixel.
I couldn't find the part of the code where I could actually modify it so that one number would be on top of the other.

The best way to really solve this is to remove the margins from each digit of the image.
 

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
239
Reaction score
57
First Language
spanish
Primarily Uses
RMMV
Oh, ok, well thank you for your time, really :) , but I still searching for a method, all need be perfect for my game
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
Try this, edit the MOG_DmgPopupEffects.js plugin with some text editor.
Replace line 345:
Code:
sprite.x = (i - (string.length - 1) / 2) * w;

That is why:
Code:
sprite.x = ((i - (string.length - 1) / 2) * w)-(8*i);

If you want to separate the digits a little, change the number 8 to 6.

I wasn't able to reduce the margin of the images because of the light effect, but I believe it will be very close to what you need.
And as instructed, you can adjust the displacement yourself.

Tip:
The image you sent me in particular has a 1 or 2 pixel shift to the left, causing part of the outline of some numbers to appear in others.
 

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
239
Reaction score
57
First Language
spanish
Primarily Uses
RMMV
WOW THAT'S IS AWESOME!!! the margin was fixed, now look much better. :) I can work with this. Thanks
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
Any time!
I am very happy to know that I was able to help with your project.
 

Latest Threads

Latest Profile Posts

my girlfriend calls all my little chibi art cute lol... funny considering that wasn't the original art style of the game.
100 problems in RMMZ 100 more problems take one down pass it around 101 Problems in RMMZ
Made some progress on my game, mostly mapping. Learned quite a bit in the process!.

M6eUoTT.png
16 Hr Video Course on MZ? Huge DLC Pack from MZ's RTP Artist | RPG Maker News #110

I spent the past couple of days transferring my RM2K3 project over to RMMV. I upscaled everything 3x and it looks so cute I can't T_T

Forum statistics

Threads
113,765
Messages
1,077,296
Members
147,802
Latest member
ariel638
Top