StCooler
Mayst thou thy peace discover.
- 9,792
- Posts
- 5
- Years
- Seen today
OMG YES! TYSM!
...I tested it and the animations are still half the size. I also found that when any animation gets used in the battle, the sprite shrinks back to its original size. I'm sorry for putting you through all this, but I found a post from 2013 (https://www.pokecommunity.com/threads/304456) where at the end a user called Minorthreat0987 is trying to do the same thing I did. Maruno said it'd be better to just half the size of the backsprites in the Pokédex (which idek how to do) and manually make all the backsprites double their original size (which idk how to do in bulk). So here I am with your advice, which again thank you for going out of your way, and my game looks like its having a seizure every time the opposing Bublasaur uses Vine Whip. Do you have any advice as to how I could a). Resize my back sprites in bulk and half their size in the Pokédex or b). make the animations bigger and not turn the sprites back to 100% size again? Thank you so much you've been an incredible help so far.
In the function:
Code:
def pbAnimationCore(animation,user,target,oppMove=false)
Code:
oldTargetY = (targetSprite) ? targetSprite.y : oldUserY
Code:
oldUserZoomX = (userSprite) ? userSprite.zoom_x : 1
oldUserZoomY = (userSprite) ? userSprite.zoom_y : 1
oldTargetZoomX = (targetSprite) ? targetSprite.zoom_x : 1
oldTargetZoomY = (targetSprite) ? targetSprite.zoom_y : 1
Code:
animPlayer.update
Code:
userSprite.zoom_x = oldUserZoomX if userSprite
userSprite.zoom_y = oldUserZoomY if userSprite
targetSprite.zoom_x = oldTargetZoomX if targetSprite
targetSprite.zoom_y = oldTargetZoomY if targetSprite
This will prevent the sprite from shrinking. I have no idea how to double the size of the animations...
As for your first question, I suspect you'd have to do this with another script. If you know Python, you can use PIL and loop over the images of the folder Graphics\Battlers. I haven't found any way to modify and save image files with Essentials.