Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - liracone

#1
Yippiiiie it worked!
This is what I have now:

in the Dialog script:
Code: ags
run-script 1 // Parameter 1 in dialog_request()


Global Script:
Code: ags
function dialog_request(int param) 
{
    if (param==1) {
        cPerson.FaceLocation(cPerson.x,  cPerson.y+10); // Look down
    }
}
...
function cPerson_Talk()
{
    cPerson.FaceCharacter(cIch, eNoBlock);     // He ist looking at me    
    cIch.FaceCharacter(cPerson);               // I am looking at him
    dPerson.Start();                           // Dialog starts
}


Problem solved! Thank you very much! :smiley::cheesy:
#2
Thank you for the quick answer :smiley::smiley:

But unfortunately, this doesn't solve the problem. I used your code and I checked that I have no other animation in my script. I even started a new project, and I only changed these functions.

But I noticed that after the dialog, the character even DOES return to his correct view (in this case, 4), but he ist still looking to the right (FaceCharacter) after he finishes. I have three loops in the view: 0 (down), 1 (left) and 2 (right). When I talk to him, he uses loop 2. But then I need it to be at loop 0 after the dialog. How do I do that? Is there something like no_longer_FaceCharacter :wink: ?

Thank you :smiley:
#3
Hi community :cheesy:,
I think this ist really simple, but I just can't find out what I'm doing wrong...
I have a character with an animated IdleView in the game_start function:
Code: ags

cPerson.SetIdleView(4, 0);


I want to talk to this character, and already put a SpeechView. This is working so far without problems. He is animated in the background, and when I talk to him, he looks at me and we talk.

This is what I have so far:
Code: ags

function cPerson_Talk()
{
  cIch.FaceCharacter(cPerson);              // I am looking at him
  cPerson.FaceCharacter(cIch, eNoBlock);    // He is looking at me
  dPerson.Start();                          // Dialog starts
  cPerson.SetIdleView(4, 0);                // this seems to do nothing
}

But when the dialog finishes, he doesn't return to his IdleView! He just keeps staring at my player forever :confused:

How can I make him return to his IdleView?

Thank you :smiley:
SMF spam blocked by CleanTalk