Well, I have a problem with different footstep sounds for different regions. Well, basically I have 4 different sounds for each region like grass or sand, etc.
I put in the room script something like this:
Code: ags
And, well, it kinda... works. But there's a problem when player do something which includes moving from region to region. When player just clicks "walk to..." its ok, but when he click, for example "interact" its not (character walks to thing he want to interact, however sound doesn't change, while he is changing the region).
Also, I know its not the best way of doing this, and I should use repeatedly_execute() but I don't really know how to. How do I retrieve information about region that player is standing on?
Ah, I tried using CharacterRegionSounds v0.80b module, but it didn't work (bunch of errors).
Anyway, hi
, this is my first post on this forum. Sorry for my bad English.
I put in the room script something like this:
function region1_Standing() // I use this function for each region
{
int grass = Random (3);
if (grass == 0) {
SetFrameSound(1, 0, 1, 6);
SetFrameSound(1, 0, 4, 6);
SetFrameSound(1, 1, 3, 6);
SetFrameSound(1, 1, 6, 6);
SetFrameSound(1, 2, 3, 6);
SetFrameSound(1, 2, 6, 6);
SetFrameSound(1, 3, 1, 6);
SetFrameSound(1, 3, 4, 6);
}
if (grass == 1) {
SetFrameSound(1, 0, 1, 7);
SetFrameSound(1, 0, 4, 7);
(...)
And, well, it kinda... works. But there's a problem when player do something which includes moving from region to region. When player just clicks "walk to..." its ok, but when he click, for example "interact" its not (character walks to thing he want to interact, however sound doesn't change, while he is changing the region).
Also, I know its not the best way of doing this, and I should use repeatedly_execute() but I don't really know how to. How do I retrieve information about region that player is standing on?
Ah, I tried using CharacterRegionSounds v0.80b module, but it didn't work (bunch of errors).
Anyway, hi
