Tankesaurus rigid

Jonny

Well-known member
When you say the game broke, did it not compile? I find it easier to just put the value, like "PlaySound #$0F"
 

monzon

New member
When you say the game broke, did it not compile? I find it easier to just put the value, like "PlaySound #$0F"
yes, it doesn´t complile (error finding compilated .nes) when i add the line #Playsound sfx_laser, i dont remember the tutorial saying other thing after import the famitracker text file.
 

dale_coop

Moderator
Staff member
Do you have a "sfx_shot" in your SFX list?
If so, then "PlaySound #sfx_shot" should work (careful, it's case sensitive).

Else you can also use PlaySound #9 (any number, it's the index of your sfx in your SFX list)
 

monzon

New member
Thanks for your time replying me (i dont want to bother but this point is kinda critical for me). Yes, it is in the list, i use same sfx_laser from the tutorial. i have tried "Playsound #7" under the line "can shoot" in the script, and still crashes
In the sound tutorial the sound labels are suposed to be loaded from the module, right? but all my projects got these empty. the image from the left is taken from the tutorial.
 

Attachments

  • screen0.jpg
    screen0.jpg
    169.4 KB · Views: 5
  • screen.jpg
    screen.jpg
    77.5 KB · Views: 5

dale_coop

Moderator
Staff member
Can you share the compilation errors that you got ?
(it's the commandline black windows that appears)
 

monzon

New member
here, also the modified script that crashes
 

Attachments

  • screen0.jpg
    screen0.jpg
    56 KB · Views: 4
  • screen.jpg
    screen.jpg
    239.1 KB · Views: 4

dale_coop

Moderator
Staff member
The code is case sensitive, it means you need to respect the lowercase/uppercase of the instruction.
It's:
Code:
PlaySound #7
(you can try replacing #7 with #sfx_laser)
 
Top Bottom