Adding SFX

Raftronaut

Member
Hello!!

I am trying to add new SFX to my game and am not understanding how to accomplish this. I added a new SFX in the sound menu with the plus button. I imported collectable tiles from the maze tutorial into the Shooter module and I would like it play my SFX when the tile is flipped. Do I do this by opening the Defined Scripts folder and editing the ASM to include ;PlaySound #sfx_testsfx in the script?
I'm a noob with ASM language so any and all advice is appreciated.

Thanks!
 

dale_coop

Moderator
Staff member
If your sound is named "sfx_testsfx", you will have to add the line :
Code:
  PlaySound #sfx_testsfx
in the script you want to execute that line, yes. Take care, it's case sensitive. So "sfx_testsfx" is different than "SFX_testsfx" and if you don't write exactly as the name, you will have error on compilation.
If you comment out the line, it means add a ";" before a line... the compilation will ignore that line (so your code will not be executed).
 
Top Bottom