Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Mehrdad on Wed 04/03/2015 11:37:52

Title: Custom turn player before walking
Post by: Mehrdad on Wed 04/03/2015 11:37:52
Hi

AGS have it in general settings but it use first frame from walk cycling in views and I really don't like it . I want make custom animations for turn player to another way.
Is it possible make custom turn player before walking for 8 direction ?
 
Title: Re: Custom turn player before walking
Post by: Ali on Wed 04/03/2015 17:09:00
I've searched, but I can't find the script I wrote several years ago (http://www.adventuregamestudio.co.uk/forums/index.php?topic=30751.0).

From memory, this is how it worked:


Point 4 has to be a blocking animation, which is one of the things that meant my script was never very elegant.
Title: Re: Custom turn player before walking
Post by: Mehrdad on Wed 04/03/2015 17:52:55
Hi Ali

Thanks a lot for your help .I know you wrote it before but I don't know what was file name . I could found it in my archive . I uploaded it now for you :
https://www.dropbox.com/s/lhijdevvaohndtr/henry_8.zip?dl=0

It's very useful for me. I hope I can handle it for 8 direction as well as.

I'm appreciate Ali
Title: Re: Custom turn player before walking
Post by: Ali on Wed 04/03/2015 18:08:12
There it is! Well discovered. There are some obvious problems with the calculations... good luck! Also, make sure to give all the Views 2 frames to get the diagonal loops to appear when walking.
Title: Re: Custom turn player before walking
Post by: Snarky on Wed 04/03/2015 18:15:45
Would it be possible to have a separate view where all the "standing" frames are actually "turning" frames, and simply switch to that as the first thing you do when the character is supposed to walk? You might need one for clockwise and one for counterclockwise turns, but if your turn animation is simple, it might look OK, I think? (My only worry is that the turn might not respect the character animation speed, and perhaps would play too fast.)
Title: Re: Custom turn player before walking
Post by: Mehrdad on Wed 19/08/2015 09:40:47
Hi
sorry to up old topic

I have a little problem with this example for turn character.

Everything is OK when I click in scene for Up/Down/Left/Right . But when I click in diagonal moves like Down-Right or Up-Left or... I have fine turn in the first but when character start to move he only choose  Up/Down/Left/Right and don't use diagonal view for walking .For example if i click South-East of character it start turn as correct direction but use Right or Down for walking and don't use Down-Right for walking.How can I get to fix it?
I sent PM for Ali and he was busy at the moment.
I'm Appreciate for any help because I'm working on animations and sheets now.
Title: Re: Custom turn player before walking
Post by: Ali on Sat 22/08/2015 11:21:56
As mentioned in the post above, you'll have to give the walking animations 2 or more frames to see diagonal movement. This is an AGS thing, not an issue with this script. If you've already done this, then I'm not sure what the problem could be. As I said there are obvious glitches with the script. Feel free to use and adapt it as necessary, but I'm afraid at the moment I don't have time to offer proper support for it.
Title: Re: Custom turn player before walking
Post by: Mehrdad on Sat 22/08/2015 13:25:46
Yes I knew and tried add frame before and it works fine.But turning have some another problems that I prefer don't speak about it now.
Thanks anyway Ali
Title: Re: Custom turn player before walking
Post by: Ali on Sat 22/08/2015 13:37:09
Sorry I can't be more help!