Original Source
- Original title: Are there any best practice opinions on tile-based interactivity?
- Original author: ProperDave
- Original date: July 18, 2016
- Source thread: https://forums.rpgmakerweb.com/threads/are-there-any-best-practice-opinions-on-tile-based-interactivity.65508/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support
Summary
TL;DR: Does anyone have any recommendations on ways to make environmental effects based on what tiles a player is standing on? Perhaps there's a plugin that already does something like this you can recommend? I rolled my own, but if there's a better option around I'm interested to know! Hi all, I was looking to add more realism to the RPG Maker project I'm playing with by adding ambient sound effects to tiles. So if you walk on stone,wood,grass etc you get an appropriate footstep noise based on the terrain...
Archived First Post
Does anyone have any recommendations on ways to make environmental effects based on what tiles a player is standing on? Perhaps there's a plugin that already does something like this you can recommend? I rolled my own, but if there's a better option around I'm interested to know!
Hi all,
I was looking to add more realism to the RPG Maker project I'm playing with by adding ambient sound effects to tiles. So if you walk on stone,wood,grass etc you get an appropriate footstep noise based on the terrain you are on. Minor details such as this can provide more depth, but I wasn't able to see an obvious way of doing this in RMMV - so I rolled a common event for the job which looks a little like the attached screenshot.
In summary;
- A continual loop checks the player position against the last known player position.
- If X/Y differ, check the Region ID of the current player tile.
- Play a sound effect specific to the Region ID returned from the query.
- Wait 4 frames and loop again*.
I took this one step further, as playing the same sound effect for footsteps is not realistic, so I have at least 7 different sound effects played randomly for the footstep.
* Whilst testing 4 frame seemed an adequate time to sync with the animation frame motion of the sprite sheet given there's 3 frames +1 repeat frame.
I'm new to RMMV, so this might not be the best approach for this sort of effect.
Does anyone have any recommendations on ways to make environmental effects based on what tiles a player is standing on? Perhaps there's a plugin that already does something like this you can recommend?
Protected download
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...
