- 115
- Posts
- 12
- Years
- Seen May 17, 2023
Would it be posible to make a script that ads paneble sounds for doors, persons and wals? What I mean about this is that you can here a sound from the direction that the object is, and when you get closer the sound get's louder. If that could be done for persons, items, walls ETC. Then thouse games would be completely accessible. I could gladly test the script my self, or heck even help make it.
sounds simple enough to do.. just set the volume based on the event's distance from the player.
something like:
Code:
# class Interpreter's Play SE method
def command_250
event = $game_map.events[@event_id]
distance = sqrt(event.x - $game_player.x + event.y - $game_player.y)
volume = distance * 15
volume =[ volume, 100].max
@parameters[0].volume = volume
# Play SE
$game_system.se_play(@parameters[0])
# Continue
return true
end
still working on my script.
it now plays all message-box texts in RPG Maker XP, when accessibility is turned on.
currently there's a bug, when trying to play a sound while another is still being played, and they're both short.
Last edited: