STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
259
Reaction score
63
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
259
Reaction score
63
First Language
spanish
Primarily Uses
RMMV
A Crystal will Rebouce!!
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,272
Reaction score
1,228
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
259
Reaction score
63
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
896
Reaction score
443
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
259
Reaction score
63
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
896
Reaction score
443
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
896
Reaction score
443
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
259
Reaction score
63
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
896
Reaction score
443
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
896
Reaction score
443
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
259
Reaction score
63
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
896
Reaction score
443
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
259
Reaction score
63
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
896
Reaction score
443
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 Posts

Latest Profile Posts

It's been that long since I wrote a plugin, it took me 4 attempts to realize it's != rather than #. In a 40-line plugin, 20 of those lines being documentation!
Disk Check Plugin - Running on Linux:
RMMV-Game-Mint.png
workin on some graphics for my game. was originally planning on doing a cartoony style for the town but I might stick with this instead
I'm so annoyed with myself...I can't get this code to work so it looks like I'm going the plugin route for a problem I should be able to do myself :kaolivid:Great. Now I get to murder save file compatibility. Again.

Forum statistics

Threads
116,082
Messages
1,095,585
Members
151,452
Latest member
payforassignments
Top