じ☆ve冰风 发表于 2026-7-26 16:39:47

Flare Collection - Play Music on Region Touch

Flare Play Music On Region Touch vs 1.0

Download: here

Credit: Darknessfalls

Spoilerhttp://i.imgur.com/CiHrOPl.png

Set up your regions.

http://i.imgur.com/MthDPDx.png

Turn on music with an array of regions. fadeout on others.



The above shows you how to quickly set up a set of regions that when touched music plays.

In the above, 19 plays the river BGS while 20 fades it out over 2 seconds.

So How is this done?

Paint some regions on the map, one set is for the music to fade in, the other is for the music to fade out. You can have multiple regions that fade in music and multiple that fade out music.

Create a parallel event that contains the script calls you see in the image, for example:

FlarePlayMusicOnRegionTouch.playMusic(, 'BGS', 'River', 50, 100, 0)FlarePlayMusicOnRegionTouch.fadeOutOnRegions(, 'BGS', 2)Run the game.When the user touches region 19, BGS of River will play. How ever when the player touches region 20, all BGS's will be faded out over 2 seconds.

ATTN!

I do not fade out BGS or any other music on map transfer, thats for you to set up.


本贴来自国际rpgmaker官方论坛作者:DarknessFalls处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/flare-collection-play-music-on-region-touch.53075/
页: [1]
查看完整版本: Flare Collection - Play Music on Region Touch