YesNoOk
avatar

Combo text issue (Read 1272 times)

Started by Zaratos, August 18, 2018, 06:25:42 pm
Share this topic:
Combo text issue
New #1  August 18, 2018, 06:25:42 pm
    • Italy
Hello everyone!
I'm making a custom screenpack and I ran into a problem with the combo text (not the counter but the text itself).
Basically, what I did is making a custom sprite for the "HIT COMBO" text that pops up with the number. My problem is that I placed it under the counter, so when the counter has double digit it looks fine, however when there's a single digit, it is pushed to the left of the screen, hiding part of the text. I suppose this is likely due to the fact that said text moves according to the numbers so my question is: is there a way to make it not move with the counter?

(I realize this might be a bit confusing, so I'm posting two screenshots to hopefully make it easier to understand)

https://ibb.co/dtNU5z -Looks ok
https://ibb.co/jCEyyK - Looks not ok :(

EDIT- I forgot to post the Combo section of my fight.def file, don't know if it can be of any help but here it is!

[Combo]
team1.pos = 10,260        ;Coords to show
team1.start.x = -240      ;Starting x-coords
team1.counter.font = 1,0,1
team1.counter.shake = 1   ;Set to 1 to shake count on hit
team1.text.text = "A" ;You can use %i to show count in the text, eg "%i Hit!"
team1.text.font = 6,0,-1
team1.text.offset = 95,20   ;Offset of text
;team1.text.scale = .75,.75
team1.displaytime = 90    ;Time to show text
team2.pos = 1380,260      ;Coords to show
team2.start.x = 1520      ;Starting x-coords
team2.counter.font = 1,0,-1
team2.counter.shake = 1   ;Set to 1 to shake count on hit
team2.text.text = "B" ;You can use %i to show count in the text, eg "%i Hit!"
team2.text.font = 6,0,-1
team2.text.offset = -130,20  ;Offset of text
;team2.text.scale = .75,.75
team2.displaytime = 90    ;Time to show text
Last Edit: August 18, 2018, 06:46:48 pm by Zaratos