Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ncw14 on Wed 13/02/2008 23:16:54

Title: gun movement question
Post by: ncw14 on Wed 13/02/2008 23:16:54
how can i make the characters hand rotate by where the aimer is


example Divine intervention the arm holding the gun faces towards the aimer and rotates with it
Title: Re: gun movement question
Post by: Radiant on Wed 13/02/2008 23:53:05
The easiest way?

Turn the hand into a character (with appropriate up, down, left and right frames, and possibly diagonals). Then use


function repeatedly_execute () {
  character[HAND].FaceLocation (mouse.x, mouse.y, eNoBlock);
}