Struggling with assigning a sound to an animation

Started by barefoot, Sat 18/06/2011 21:30:25

Previous topic - Next topic

barefoot

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


I May Not Be Perfect but I Have A Big Heart ..

Khris

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:

Code: ags
  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.

barefoot

#2
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

I May Not Be Perfect but I Have A Big Heart ..

monkey0506

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..

barefoot

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
I May Not Be Perfect but I Have A Big Heart ..

SMF spam blocked by CleanTalk