How do I remove a sound from the Sounds folder through the code?

0 favourites
  • 5 posts
From the Asset Store
Grenade Sound Library contains: 135 sounds 50 grenade sounds and 85 surface sounds
  • The Delete command is not available

    you need to delete it from the folder and not unload it from RAM

    Or-maybe someone can tell you-how to implement copying from one sound to another?

  • It depends on the platform. In a desktop application you may be able to delete project files if the app has necessary permissions to the folder. In a mobile app this is likely not possible.

    Why do you want to delete a sound? Just ignore / don't play it.

  • Thank you for answering

    In fact-I need to replace the pre-loaded sound with another one-which will be added to the program when dragging

    But the whole problem is that if the names match, then the replacement does not occur!

    So there are two possible solutions

    1) - either you need to delete the first sound and then upload the second one with the same name

    2) Either copy the contents of the second newly uploaded audio to the first one-but this is not possible-there is no such command

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not sure you need to do either of those things - if you want to swap one sound for another, you could have a variable of the name of the sound to play, and then just change that variable when you want to switch it for another sound. That way there's no need to delete or modify actual sound files.

  • Dear Ashley,

    You are clearly a genius!

    Thank you very much!!

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