• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

help in resized battler

  • 35
    Posts
    12
    Years
    • Seen Jun 24, 2017
    i have animating gif image and use this script in PokeBattle_ActualScene
    if @frame>5 && @PokemonBattlerSprite.zoom_x<2.0 @PokemonBattlerSprite.zoom_x+=0.2 @PokemonBattlerSprite.zoom_y+=0.2 @PokemonBattlerSprite.zoom_x=2.0 if @PokemonBattlerSprite.zoom_x > 2.0 @PokemonBattlerSprite.zoom_y=2.0 if @PokemonBattlerSprite.zoom_y > 2.0 pbSpriteSetCenter(@PokemonBattlerSprite,@spritex,0) @PokemonBattlerSprite.y=@spritey+(@endspritey-@spritey)*@PokemonBattlerSprite.zoom_y end if @PokemonBattlerSprite.tone.gray<=0 && @PokemonBattlerSprite.zoom_x>=2.0

    found from here https://www.pokecommunity.com/showthread.php?t=317114
    i have got three problems
    1)After attack animation it again resize to original size.
    2)In some battlers forms a black thing during animation.
    3)After defeating enemy and get exp the enemy
    sprite shows down.

    Note: Problem 3 do not come in essentialv12

    images are down in attachment.please help.
    I am using
    essential v13
    THANKS IN ADVANCE

    Sorry for bad english
     
    Last edited:
    1) The battle system does not support sprite sizes of anything other than 100%. This includes the animation player, which is a separate thing.

    2) Your Pokémon gif isn't the proper format. It needs to fully replace all pixels each frame, rather than just the pixels that have changed.

    3) See 1).
     
    Your first post says you've made the battle screen resize your sprites. I'm saying that the thread you linked to has incomplete instructions for how to make this possible, and that is why you're getting problems 1 and 3.

    To be honest, I'm not entirely sure what's causing problem 3. It must be something you've done, though, and I'm guessing you did it while adding the sprite-resizing code.
     
    Issue 1

    The problem is that the battle system updates the sprites on attack to a single zoom and Essentials does not actually differentiate a back sprite from a front sprite. I honestly never found out how to do this, and am pretty sure Maruno is the only person who knows Essentials well enough to know how it needs to be fixed and it seems to me that it is not an issue that one simply walks another person through how to fix.

    Solution

    Go back to .PNG sprites. Fixing the zoom is more work than it is worth given that there are problems you are going to run into that you do not even have listed (I am speaking from experience here)

    Issue 2

    You have to format your .GIF files correctly. If you just pull them off the site, they are going to flicker/dissolve/overlap and look horrendous. For all 718 front sprites and all 718 back sprites, it took me days to get them formatted properly and I am pretty quick in Photoshop. If you have a whole day to devote to them, you could probably hammer them out in a day.

    Solution

    You need to set every frame to dispose of itself. Then you need to set the very last frame to the opposite, and ensure it does not dissolve itself. Save it and you should be good to go with it.

    All that being said, I wish you luck. I was unable to get them working and I had people like Maruno, Venom12, and Luka S.J helping me. There are still a number of issues you have not even mentioned, most notably the amount of lag you must be having and additional sprite flickering you probably have not noticed yet because your sprites are not even formatted properly.
     
    Back
    Top