Shape.setCollisionSoundEnabled

Sets if the shape should generate sound on collisions.

Kind: Function

Environments: Game

Game

shape:setCollisionSoundEnabled( enabled )

Open the full Game reference

Parameters:

Name Type Description
shape Shape The shape.
enabled boolean Whether the sound should be enabled or not.