Open main menu
Home
Random
Log in
Settings
About Stardew Valley Wiki
Disclaimers
Stardew Valley Wiki
Search
Changes
← Older edit
Newer edit →
Modding:Audio
(view source)
Revision as of 22:41, 18 October 2021
103 bytes added
,
22:41, 18 October 2021
Added more context to the localSoundAt example
Line 48:
Line 48:
// that are close to the player.
// that are close to the player.
// This is some of the code used for the running sounds, played while riding on a horse.
// This is some of the code used for the running sounds, played while riding on a horse.
−
if
(step_type
== "Wood"
)
+
public virtual void PerformDefaultHorseFootstep
(
string
step_type)
{
{
−
if (this
.
rider
.
ShouldHandleAnimationSound
(
)
)
+
// .
..
+
if
(
step_type == "Wood"
)
{
{
−
this.rider.currentLocation.localSoundAt("woodyStep", base.getTileLocation());
+
if (this.rider.ShouldHandleAnimationSound())
−
}
+
{
+
this.rider.currentLocation.localSoundAt("woodyStep", base.getTileLocation());
+
}
// ...
// ...
</syntaxhighlight>
</syntaxhighlight>
7automaton
41
edits