- Pokémon Essentials Version
- v17.2 ✅
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.
First, download this folder with puddle effect sound and anim sheet.
Find this line:
PLANT_SPARKLE_ANIMATION_ID = 7
PUDDLE_ANIMATION_ID = 8 # or whichever animation ID you'd like to use
Find these lines:
if PBTerrain.isJustGrass?(pbGetTerrainTag(event,true)) # Won't show if under bridge $scene.spriteset.addUserAnimation(GRASS_ANIMATION_ID,event.x,event.y,true,1)
elsif pbGetTerrainTag(event,true) == PBTerrain::Puddle if event == $game_player pbSEPlay("puddle", 100) else # reduce sound effect volume further away from player dist = ((event.x-$game_player.x).abs+(event.y-$game_player.y).abs) if dist <= 6 && dist >= 0 pbSEPlay("puddle", [80,80,80,80,70,40,25][dist]) end end $scene.spriteset.addUserAnimation(PUDDLE_ANIMATION_ID,event.x,event.y,true,0)
elsif pbGetTerrainTag(event,true) == PBTerrain::Puddle pbSEPlay("puddle", 100) if event == $game_player $scene.spriteset.addUserAnimation(PUDDLE_ANIMATION_ID,event.x,event.y,true,0)
And you're good to go!
Big thanks to Maruno, Nuri Yuri, Vendilly and DerxwnaKapsyla for helping out with adding the audio code.
Credit if used: Boonzeet