How to use corectly the function room_AfterFadein() ? Not working for me.

Started by freeplayer, Fri 07/03/2014 10:37:41

Previous topic - Next topic

freeplayer

Hello to you all.
I am new here, and also a beginner in the point and click game creation, but I find it very interesting and I am begining to get further and further each day!

I have a simple question. I want my character to say a text when first room starts. For example, just after the fadein, I want my character to say "Hi".
I read over forums, it would be the code (in room script):

Code: ags
function room_AfterFadein()
{
     cHero.Say("Hi");
     aSound3.Play();
}


Also I added aSound3.Play(); because I wish a short sound would play when room starts.
I did that, but nothing happens.

I must say, I managed to put sounds on footsteps and also a "look at with dialog function". But I can't get the room_AfterFadein function to work.

PS: I am using AGS Editor .NET (Build 3.2.1.111).

Thanx!

Billbis

Did you link the function with the event panel of the corresponding room ? You have to.

NickyNyce


freeplayer

Thank you. The video helped me! I got it to work now. And learnd also some new stuff.
Thanks!

SMF spam blocked by CleanTalk