Boonzeet
Pokémon Secrets of the Ages Developer
- 188
- Posts
- 16
- Years
- United Kingdom
- Seen Feb 18, 2025
![[PokeCommunity.com] [17.2] Efficient Puddle Step Animations [PokeCommunity.com] [17.2] Efficient Puddle Step Animations](https://lequi.me/hosting/images/waterpuddles.gif)
Scripts exist for the bubble animation when walking through puddles, but add a lot of code to tackle a small problem. This can be achieved in V17 with a simple edit of the grass animation code.
Settings
Find this line
Code:
PLANT_SPARKLE_ANIMATION_ID = 7
Add this underneath:
Code:
PUDDLE_ANIMATION_ID = 8 # or whichever animation ID you'd like to use
PField_Field
Find this line::
Code:
if PBTerrain.isJustGrass?(pbGetTerrainTag(event,true)) # Won't show if under bridge
$scene.spriteset.addUserAnimation(GRASS_ANIMATION_ID,event.x,event.y,true,1)
And add this directly underneath:
Code:
elsif pbGetTerrainTag(event,true) == PBTerrain::Puddle # Won't show if under bridge
$scene.spriteset.addUserAnimation(PUDDLE_ANIMATION_ID,event.x,event.y,true,0)
Lastly, save this replacement to the dust and grass animation and create an animation that uses 3 frames for each picture, totalling 12 frames:
And you should be good to go!
Last edited: