Sound, Animation (Solved)

Started by ktalebian, Sun 19/02/2006 10:59:00

Previous topic - Next topic

ktalebian

Hey
I have two questions
1) How can I play a sound when the character does something?
2) How can I have an animation in the background? I don't want to have animated background. I want the permenant background, but have an animation in corner, like an object.

Ashen

Have you actually tried anything yet? It's not that hard.
Look up PlaySound(..), PlaySoundEx(..) (in fact, any of the Multimedia functions relating to sound, and Object.Animate(...). (Interaction Editor equivalents, 'Game - Play sound effect' and 'Object - Start object animating'.)
Remember, you'll need to assign a view to the object, before you can animate it (Object.SetView(..) or 'Object - Set object view number').
I know what you're thinking ... Don't think that.

ktalebian

#2
thxx, butt umm, how do I usee it? So I upload the picture. Then in the view panel, I make an animation. now what do I do?


Actually, nvm, it worked! But I want the animation to be continous in the background! Right now, I have to do something for the animation to start!

Also, for the sound, you upload the musics in the MUSIC directory right? Cause I am using the script you told me above, but it gives me an error and it does not play the thing

Ashen

Assign the view and start the animation in the 'Player enters room (before fadein)' interaction.

As of V2.71 MUSIC goes in the music folder, SOUNDs stay in the main game folder. What is the error message you get?
I know what you're thinking ... Don't think that.

ktalebian

oook, thxx, the problem is fixed! I thought I need to place the sound files in Music folder as well!

SMF spam blocked by CleanTalk