problem with musik

Started by viktor, Sat 08/05/2004 20:54:34

Previous topic - Next topic

viktor

First of all excouse my spellin becouse i'm not english. Im slovene  ;D
I looked in all the manuals and all the FAQ-s and I still don't get it.
Maybee it's becouse the manuals are in english  :P
For instance I have a stereo in a room and when I interact with it I want it to play musik. How do I do that. And please tell me the anwser in ONE STEP AFTER A NOTHER (or something like that).
PLEEASE... :'(
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

Scummbuddy

what music file type/extension are you trying to play?

and your english is actually not that bad. yes, there are some spelling errors, but everything was legible. nicely done.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

..

If you want it to play a piece of music.

Depending if the stereo is a hotspot/object

Open Up the Room Editor
Select the object/Hotspot that is the stereo
click the interaction button
Select from the drop down box Game - Play a sound effect
Click on the change button and type in a number (remember what it is)
Then take the music sound file and copy it to your AGS Game folder and rename it SOUNDX.wav or SOUNDX.mp3 where X is the number you typed in the Change Box thing.

Does this help?

viktor

#3
EEEK...
I copy the musik in to the folder rename it to SOUND1.mp3. I set the play sound efect 1. But when I test the game and want it to play the musik. Nothing hapenes. After i quit the game a mesage pops up  "sound sample load failure: can not load sound 1"

As long as this topic is open I might as well ask another question. I just want to know what kind of art program you guys use to create your rooms and characters. And in what resolution size are your characters...
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

..

Several Solutions for this. You could try renaming it to SOUND01.MP3 .. Or you could try making the extension in capital letters so the file is called SOUND1.MP3.

The problem could also be that its not in your game folder. Make sure its in the folder with ac2game.dta file and not in the AGS Folder (With AGSEDIT.exe)

As for Graphics Programs theres a thread here with paint programs ppl use.

My sprite dimensions are the same size as the original roger sprite just twice as big cos im in 640x480 mode.

Mr Flibble

I think there is something about if you want to play Sound1 as music, you have to name it Sound1001.

(add 1000)

Either that , or make sure the file is in the right directory.
That is, inside the AGS folder, then inside the folder that your game is named. ( Sorry if I seem patronising .)

I use MS Paint. On a Windows95 computer. :-\
But it comes up nicely.
My sprites are about 30x65 but don't hold me to it. I don't measure them, I work by how they look.
(About 4/5 of an inch tall in X1 magnification)
Ah! There is no emoticon for what I'm feeling!

Ashen

About what Mr. Flibble said (from the manual):

If you use the interaction command, you must add 1000 to the music number so that AGS recognises it as music and not a sound effect. For example, to play music 23, use "Play sound 1023".

So, you don't actually add 1000 to the file name, just in the interaction editor.
I know what you're thinking ... Don't think that.

Pet Terry

#7
Or then you could set object interaction to 'Run script' and put:

QuotePlayMusic(1);

EDIT: Remember that the file must be named music1.mp3 for this to work.
<SSH> heavy pettering
Screen 7

viktor

Thanks guys. I finaly got it.
And thanks for the program list...
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

SMF spam blocked by CleanTalk