How to corelate sounds with physics?

0 favourites
  • 5 posts
From the Asset Store
Physics Block Puzzle game template for Construct 3
  • For example:

    You have 5 falling boxes,

    and you want to add some wood sound on collision

    between them,

    but 5 x wood sound x each collision = terrible cacophony :)

  • You want to have as much variation of the sound as possible, maybe 10-20 subtly different wood sounds and have the code choose a sound from the group.

    Also you can add subtle pitch variation each time one of the sounds is triggered.

    Something like on collision, play choose("wood1,wood2...) at object. Then on the same event add a playback rate of maybe random(-0.5,0.5)

  • CrudeMik

    Thanks for reply, especially playback rate idea

    anyway: even if one box fall on another box - there is no just "1" collision, because usually it fall and box do "totter" (be shaky) = generates 2-3 collisions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • szymek

    Maybe try limiting it by measuring force. Catch the velocity of the box before impact and tell it to trigger the sound only if the force is strong enough to justify it.

    You could even do something clever like modulating the playback volume based on the speed of the object, so a strong collision plays back at 0db and a soft one could be -10db.

    Or even better combine variable playback volumes with different samples so you have woodHit_hard and woodHit_soft variants.

  • CrudeMik

    thanks for all ideas,

    especially measuring force and making sounds dependable on it :)

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