[RM2K3] FOOTSTEPS? WOW

Posts

Pages: 1

How can I add a footstep noise for every square that the player moves?



I have done it once but I can't manage to do it anymore T___T




PS: !!!!

I forgot to say that the TERRAIN TAB's footstep doesn't do the work for me


It has to be done so I can make EVENT'S footsteps
Magi
Resident Terrapin
1028
Please don't forget that you might need to add a wait in there somewhere depending on the length of your sound effect.

While you are add it, why not add some additional sounds for different terrain types and some animations when running through dirt? If you're going the event route, there's really no harm in amping up your presentation to the maxxx
With DynRPG, you could actually time a footstep sound with the charset's stepping animation frame--meaning the frequency of the stepping sound would depend on the hero's speed. The code would be pretty short. Start with 2 very short sound effects for footsteps (2 variations would sound nicer than 1), check for the stepping animation frame and play the appropriate sound effect.

RPG::Sound stepLeft("Step1", 100, 100, 50);
RPG::Sound stepRight("Step2", 100, 100, 50);

if (RPG::hero)
switch (RPG::hero->step) {
case RPG::ANI_FRAME_LEFT:
stepLeft->play();
break;
case RPG::ANI_FRAME_RIGHT:
stepRight->play();
break;
default: break;
}
}

I can whip this up into a plugin later if you're interested, but keep in mind that DynRPG/plugins can only be used with the unofficial version of 2k3.
Pages: 1