Physics + Collision + Sound... How? :(

0 favourites
  • 7 posts
From the Asset Store
Take knife like a real thing and interact with it. Throw, rotate your weapon and etc.
  • Well take a look at my capx first... the issue is quite obvious :(

    dl.dropbox.com/u/45711709/soundTest.capx

    I want to play a sound when the ball hits a block and not just rolls on it but it won't work as you can hear :(

    Also i'd like to play a rolling sound when the ball rolls along a block, also have no idea how to do that :/

    Anyone got an idea? <img src="smileys/smiley19.gif" border="0" align="middle" />

    Thanks. <img src="smileys/smiley4.gif" border="0" align="middle" />

  • First of all, when I try your CAPX the chime only rings, wenn the ball HITs and not rolls....so I can't see an issue there...

    Then, playing a sound while the ball rolls along the wall - i would use an invisible sprite as an overlay with an ofset of 5 pixs or so, and when the ball is moving and is over the overlay and the collision sound is not playing, play the rolling sound.

  • The Problem is that the hitsound plays repeatedly for me (in firefox)... i tried to fix it with the variable stuff which kind of works but not 100%...

    And i didn't implement the rolling sound yet because i didn't know how to tackle it completely... i have the velocity and with your idea of the hidden sprite i could make it work i guess... :)

  • have you tryed you CAPX with CHROME? Like I said, here the "DING" only sounds when the ball hits the wall

  • Works in FF and Chrome :

    Disable your event 4

    Make new event

    Audio: on ended tag "" (since it's the name you gave to ding)

    -> Ball set MakeSound to 0

    For the rolling, make a new event

    system: compare two values velocity > (at least) 10

    system: trigger once while true

    -> play ding tag "rolling"

    Here's the corrected capx

  • system: compare two values velocity > (at least) 10

    system: trigger once while true

    -> play ding tag "rolling"

    Here's the corrected capx

    This is only true, if the rolling sound has to do with "speed" - if it has to do with objectg contact, this will not work, will it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the suggestions guys, i've scrapped the rolling sound for now :/

    Couldn't make it work how i wanted it to be and if im gonna waste more time on it i'll never finish the game in time :P

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