How to make the player character look at the character he's talking to

Started by doctorhibert, Sun 26/02/2017 12:58:41

Previous topic - Next topic

doctorhibert

So if I interact with a character, my PC just uses the talkingview of the last walkingview he was in. So if he needed to walk up to get to the character he wanted to talk to, the talkingview would just be his back. How do I make him look to wherever the character is?

I'm using the BASS template, if that changes anything

Slasher


Cassiebsg

you can use:
Code: ags

player.walk(character.x-10,character.y+1); // Note the -10 and +1 are just random cords, to add/subtract from the character's coords. adjust them as you see fit.
player.FaceCharacter(character);
//remaining of talk code


EDIT: slasher the flash, beat me to it. (laugh)
There are those who believe that life here began out there...


SMF spam blocked by CleanTalk