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,307
Reaction score
703
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 Posts

Latest Profile Posts

BCj
Working on Escalia again, feels good. Have this overwhelming urge to map as well, but need to get some extra tiles commissioned first :D
Lee Sang wrote on Bandito's profile.
Hi, I've just tried your plugin "Game is Active" and when I tested it on Android, it gave me an error, something about "Cannot read property 'underfined' of underfined.
With my project, I want the player to have access to all the tools they need to get from New Game to Credits as soon as possible; I want the player's progress to only be impeded by the player not knowing how to use the tools the game provides.
Just a little close up shot...
w2xZocX.jpg
finally drew the last member of "team outcast" for my game. since my game has a lot fighting game elements in it, there's bosses in teams of three like King of Fighters.

Forum statistics

Threads
113,857
Messages
1,077,988
Members
147,950
Latest member
Sambros
Top