How do I make a sound play on command at a certain spot?

0 favourites
  • 3 posts
From the Asset Store
In this template the music plays without looping in your game
  • Hey all,

    I am currently making a platformer which has some doors as decoration in the envoirement, I was thinking, since they don't function and just sit there in the background, it would be fun that when you are standing at it, you could press <key> to let a sound play (doorbell,which I imported already).

    The way I tried it was to When player is collision with an square marker sprite I made which is over the door, when key <key> is pressed > play sound linked to my imported file (volume 0, loop off).

    It sadly won't work xD

    Any ideas or alternatives ways I could try to do this?

    Thank you in advance.

  • It works. Without seeing your event sheet, there is no way for us to figure out what is wrong with your implementation.

    https://www.dropbox.com/s/3ly5ej6b9w6cu ... .capx?dl=0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It works. Without seeing your event sheet, there is no way for us to figure out what is wrong with your implementation.

    https://www.dropbox.com/s/3ly5ej6b9w6cu ... .capx?dl=0

    Hey, Thanks for the reply! I got my original content in the capx so I rather not share, I could post a screenshot if neccesary but I will check out the capx first.

    Edit: It works, Thank you very much.

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