How do I add sound for character movement

0 favourites
  • 4 posts
From the Asset Store
Customize the animation of character when item changed
  • I apologize if this is a stupid question, but I'm having some issues with adding sound to my game.

    Basically, I have imported a short audio clip with footsteps, and I want this to play whenever the character is touching the floor and is moving left or right.

    However, it seems no matter how I set it up, it sounds like the clip is starting over and over again (before it is finished). Not sure how else to describe it.

    I thought an event like this would work, but maybe I'm missing something?

    Player - Platform is moving

    Player - Platform is on floor -> Audio - Play sound

  • Player - Platform is on floor -> Audio - Play sound - this will trigger sound every tick. You need to add "Trigger once while true" if you want to play it only once

    but for things like footsteps you could play sound based on animation frame numbers - to play sound only when player foot is touching floor.

    For example:

    animation frame = 2

    or

    animation frame = 4

    trigger once -> play sound

  • Great! I believe the trigger once event was the key here. Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Learn to read the manual and tutorials before anything.

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