Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Sat 18/06/2011 21:30:25

Title: Struggling with assigning a sound to an animation
Post by: barefoot on Sat 18/06/2011 21:30:25
Hi

I'm struggling with assigning a sound to an animation in a dialog.

I want the audio sound to work together when the animation begins.

I've tried stuff like:

Putting the sound around time of animation /

Linkaudio, Frame /

if (frame.LinkedAudio != null) frame.LinkedAudio.Play(); /

frame.LinkedAudio = asawing;

SetFrameSound

But as yet have not found the ideal solution.. No assign sound to frames in view events panel.

Can someone point out the best way..

cheers  if you can help / hint

barefoot


Title: Re: Struggling with assigning a sound to an animation
Post by: Khris on Sat 18/06/2011 21:37:21
There are two ways:

1. Open the view, select the frame, them click on Sound in the properties pane and select the sound.

2. In-game:

  ViewFrame *frame = Game.GetViewFrame(VIEW, loop, frame);
  frame.LinkedAudio = asawing;


I'm having a hard time deciphering your post so I can't address any specific problems.
Title: Re: Struggling with assigning a sound to an animation
Post by: barefoot on Sat 18/06/2011 22:03:46
Khris

you won't believe this...  The options of assigning a sound had disappeared!

This had been my first thought.

I closed AGS down and restarted.. now it's back..

strange happenings yet  again.

Will try both options.

Cheers Khris

barefoot

Title: Re: Struggling with assigning a sound to an animation
Post by: monkey0506 on Sun 19/06/2011 00:17:11
Do you have more than one AGS version installed? If so, is one of them an earlier version than 3.2? That sounds to me like the problem..
Title: Re: Struggling with assigning a sound to an animation
Post by: barefoot on Sun 19/06/2011 20:14:43
Hi Monkey..

Only got AGS 3.2.0

Not quite sure why some of the events panel for the views vanished and then returned.. mystery.. But all ok at the moment.

cheers

:=

barefoot