YesNoOk
avatar

"Aesthetic bug" with ModifyExplod (Read 4667 times)

Started by Fausto Mugen, September 26, 2017, 02:26:58 pm
Share this topic:
"Aesthetic bug" with ModifyExplod
#1  September 26, 2017, 02:26:58 pm
  • **
  • I got tired of waiting for someone to do it for me
    • Argentina
[Google Translation]

I have two explods cut in half, one in front of the enemy and another behind, and when using ModifyExplod in the two at the same time the problem appears.
I attach two explanatory gifs, does not give any error but looks ugly.

In mugen 1.0, the bug is presented in Time = 17, 21, 25, 29, 37, 41, 45.
Spoiler, click to toggle visibilty

In Mugen 1.1, the bug is presented in Time = 15.
Spoiler, click to toggle visibilty

Here I leave the codes relevant to the problem:

Spawning helper (Player scale 0.85, 0.9 -------- Helper scale 0.25, 0.25)
Spoiler, click to toggle visibilty

Helper state (hitting the enemy)

Spoiler, click to toggle visibilty
Last Edit: September 28, 2017, 12:38:36 pm by Fausto Mugen
Re: "Aesthetic bug" with ModifyExplod
#2  September 26, 2017, 02:33:15 pm
  • ****
  • Objection! Sustained!
    • Russia
    • mitia.pogorelov1@yandex.ru
The problem isn't in your coding. At least, I don't think you really need to do anything there. I suggest you edit your background "half-of-rings" into full rings.
Why? Well, because full ring at background shall overlay these holes, so they would be less noticeable. At least, I think this will work in that way.
Re: "Aesthetic bug" with ModifyExplod
#3  September 26, 2017, 02:55:30 pm
  • **
  • I got tired of waiting for someone to do it for me
    • Argentina
Thank you! I will try it.
Re: "Aesthetic bug" with ModifyExplod
#4  September 26, 2017, 10:26:55 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
Yes, as it has been said, you have to overlap the sprites to ensure a smooth scaling. Mugen does fuzzy things with decimals and localcoord spaces. Thst means 1 pixel scaled up 50% could become 1.4 or 1.6 in some instances, while you were expecting 1.5
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: "Aesthetic bug" with ModifyExplod
#5  September 28, 2017, 12:38:14 pm
  • **
  • I got tired of waiting for someone to do it for me
    • Argentina
The problem isn't in your coding. At least, I don't think you really need to do anything there. I suggest you edit your background "half-of-rings" into full rings.
Why? Well, because full ring at background shall overlay these holes, so they would be less noticeable. At least, I think this will work in that way.

Yes, as it has been said, you have to overlap the sprites to ensure a smooth scaling. Mugen does fuzzy things with decimals and localcoord spaces. Thst means 1 pixel scaled up 50% could become 1.4 or 1.6 in some instances, while you were expecting 1.5

I replaced the background sprite and the problem disappeared, thank you very much for your answers.