Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Sektor 13 on Sat 13/08/2005 13:21:48

Title: UnLock.View - Turn Character
Post by: Sektor 13 on Sat 13/08/2005 13:21:48
As i have used all loops(15) in my main charaters VIEW, i must asign him a view if i want for him to animate, ok Lock.View..., character is turned up, he does an animation, and the i call UnLock.View, but when i do that, character turns down (i think it calls the first picture of the original VIEW), i call cript that he turns back up again, but this looks like quick flash and it doesn't look very nice. So how can you make character to face location the same location as he did befor animating, (if you must use another loop).

By the way, it would be nice if there would be more that 15 loops in each view. At least 30 would be fine. ;D
Title: Re: UnLock.View - Turn Character
Post by: AJA on Sat 13/08/2005 23:44:12
I had the same problem when I was making Alone in the Night. FaceLocation didn't work even if I had set TurnBeforeWalking to false.

All you'd basically have to do is define LEFT, RIGHT, UP, DOWN to the correct loop numbers and use cMan.Loop = UP; instead of cMan.FaceLocation(xxx).
Title: Re: UnLock.View - Turn Character
Post by: Sektor 13 on Sun 14/08/2005 18:54:04
hey thanks, i used character.loop and it works fine !