Music & Sounds Folder. Missing!

Started by CheckMate, Sun 16/07/2023 16:17:26

Previous topic - Next topic

CheckMate

Hi,

I'm totally new at programming and I'm trying to finish my first videogame, but I have a big problem.

I'm trying to figure out how to put sounds and to play music in my game, but I don't find the folders of "Music" and "Sounds" at the main directory. I tried to put the music file into other folders with the correct name (Music1, in this case) but when I'm programming the new room and I type "PlayMusic", "PlayAmbientMusic" or "PlaySound" the programm doesn't recognize the paramether. For example, I'm trying to put the sound of footsteps on my main character but when I'm in the View Editor, at the frames, it doesn't let me put numbers in the sound properties.

Thanks

Crimson Wizard

Hello.
PlayMusic and PlaySound are ancient scripting commands that were replaced many years ago. In the contemporary versions of AGS you should be importing audio clips in the project tree, under Audio, and play them using "MyClipName.Play()" kind of command.

https://adventuregamestudio.github.io/ags-manual/MusicAndSound.html

Khris

Hey, in case you're following a tutorial, can you tell us which one? Because it should be updated or marked as outdated.

SMF spam blocked by CleanTalk