How do I add a running sound to my platformer?

0 favourites
  • 5 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • I thought this one would be straightforward... but i'm having trouble adding footsteps to my platformer character.

    It moves using the platform behaviour... but when I add a sound effect 'when platform is moving'... the sounds plays and doubles-up constantly to the point where I have multiple sounds on top of each other.

    I have the sound set to loop as it's just a 'taptap' of left-right footsteps.

    It's almost like the sound doesn't finish before another one starts... would making it a longer sound effect work (repeating the footsteps into a longer clip)?

    Any advice please?

    TIA

  • its because every tick it compares if platform is moving and start playing a new sound.

    Create a sub event that compares if that sound (tag) is current playing, if not, start it looped, so every tick it will "understand" that it is already playing and will not start a second sound.

  • Thank you this worked perfectly :)

  • when i did this i set it to the walking animation of the object.

    if animation X is playing then play the sound.

    if animation X is not playing dont play the sound

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • when i did this i set it to the walking animation of the object.

    if animation X is playing then play the sound.

    if animation X is not playing dont play the sound

    True but dont use "dont play the sound" but use "stop walking sound" instead

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)