Jump to content


Photo

make villager face you ONLY when talking to you


  • Please log in to reply
1 reply to this topic

#1 iphoneiv

iphoneiv

    GMC Member

  • New Member
  • 25 posts
  • Version:GM8

Posted 20 February 2012 - 01:14 AM

exactly what the title saids

- you go to a villager and prezz 'z'
- they face you and say something
- after they are done speaking, they face away and do whatever they were doing

i'm not asking for text box and stuff, since i already got that. I just want to know how to make them face you
- please help OuO
  • 0

#2 greep

greep

    Menaces with Spikes

  • GMC Member
  • 2295 posts
  • Version:GM7

Posted 20 February 2012 - 01:20 AM

Define "face" ;) I.e. topdown/platformer/3d etc

Basically you'd do it this way:

(either in create, or if changed at times, step):

beforedialogue = sprite_index

when deciding to talk

if (talking)
{
sprite_index = (face the character) (choose appropriate facing index)
//messages/textboxes/etc
}

sprite_index = beforedialogue

More than that I can't say without knowing the game's setting.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users