Comments

Log in with itch.io to leave a comment.

Hi. Great plugin, but for some reason I cannot get it to work. Whenever the player approaches the water, pressing the "swim" key does nothing at all.

Hi, without being able to see your parameters, it is hard to know what you have set up that might be going wrong.

First thing to check is to make sure the player has access to swimming. You can either start a new game with the "Swim Access" parameter under "Initial Settings" set to true, or you can use the plugin command "Change Swim Access" and set it to "true".

Some less common issues you may be running into:

If you have set the "swim key" to a capital letter, you will need to hit shift+that letter.

If you have a Swim Enter or Exit region set, the player will only be able to enter/exit swimming while standing ON those regions.

Check that the boat can pass the tiles you are trying to swim on. Swimming gives the player boat passability, and the plugin will check if the boat can move on the tile you are trying to swim on. Depending on how your tileset is set up, your water tiles may not be boat passable.

I have this error  : Utils.parseSoundEffectJSON is not a function so the plugin dosent work it seem to have an error in the code ...

Hi, you need to install [CGMZ] Core and/or make sure it is placed above all other [CGMZ] plugins. All of my plugins have this requirement.

(2 edits)

This is already done i'm not new with your plugins they are incredibles haha.The only way i find to make the game launch with your plugin is to delete the ' parseSoundEffectJSON ' section from the code and it work but no swim animation, no splash sound and no animation splash but the player jump in water and walk normally. And for the swim animation , when i select my character sprite sheet, is the plugin simulate the swim animation ?

(1 edit)

I see, if you already have [CGMZ] Core, then you need to update it if you are getting that error. The parseSoundEffectJSON function comes from my core as multiple plugins of mine have sound effect parameters and I got tired of re-writing the same code over and over again to parse it out into a usable object for the actual code, so I put it in the core. The current version is 1.14.1 but that function was added in 1.12.0 of my core. If you delete the sound effect setup then no sound effect will be able to play.

The splash animation works via spritesheet animation. What does your Splash Animation, animation frame width/height/speed/time parameters look like?

For swimming animation, you will need to create a swim sprite sheet for each actor, and then if that actor is the lead party member it will change their character walking sprite sheet to the swimming sprite sheet while they are swimming and change it back when they stop swimming.

No splash animation 

Could you try putting this image as your Splash Animation parameter, and then using the settings Animation Frame Width = 48, Animation Frame Height = 48, Animation Speed = 10, Animation Time = 30? Maybe having a working example you can modify would be easier, so you can see how it works and edit it as needed for your own game.

Also, were you able to get the other issues you were having solved? If you already deleted the parseSoundEffectJSON lines from the code, you will probably need to revert those changes or just redownload the plugin after updating my CGMZ Core to get sound effects working again.

I will update cgmz first i think this is the problem

(+1)

This is amazing! I was just racking my brain recently about how I could implement swimming into my game and you come to the rescue! :D I extra love how you want to implement diving too which is something I wanted to do. Similar to how in Animal Crossing New Horizons the player can dive when they swim over a shadow and get a sea creature.