Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: TheJBurger on Sat 09/12/2006 20:36:24

Title: Turn to FaceLocation [SOLVED]
Post by: TheJBurger on Sat 09/12/2006 20:36:24
I have that "Characters turn to face direction" box enabled. When I try it in action though, my character waits about 1-3 seconds, and then he turns. I never noticed the wait before and I was wondering what caused the problem.

The exact code for the face location is:
cEgo.FaceLocation(cEgo.x, cEgo.y+200,eBlock);

I never noticed the slowdown before, and it only started later in my game development. My game is currently quite big, so I was wondering if that was the sole problem.
Title: Re: Turn to FaceLocation
Post by: InCreator on Sun 10/12/2006 09:02:17
It's blind guess, but check if your character's default view's very first frame(s) doesn't have any delay?
Like, under view editor.
Title: Re: Turn to FaceLocation
Post by: TheJBurger on Sun 10/12/2006 17:13:00
I thought of that too, but there's no delay on any of the frames.
Title: Re: Turn to FaceLocation
Post by: Monsieur OUXX on Wed 13/12/2006 09:23:35
Quote from: TheJBurger on Sat 09/12/2006 20:36:24
I have that "Characters turn to face direction" box enabled. When I try it in action though, my character waits about 1-3 seconds, and then he turns.

I've got the same problem...
Title: Re: Turn to FaceLocation
Post by: TheJBurger on Tue 19/12/2006 02:08:15
Sorry to bump, but I was hoping some one could answer my question.

Here's my problem (again):
cEgo.FaceLocation(cEgo.x, cEgo.y+200,eBlock);
That line of code makes EGO turn only after about 2-4 seconds. This is only when "characters turn to face direction" is enabled. When I turn it off though, he turns instantly, but I want the turning feature enabled. I know it should be faster because it worked instantly before, so what's the problem?
Title: Re: Turn to FaceLocation
Post by: SSH on Tue 19/12/2006 08:43:31
If you turn anti-glide mode off, does it make a difference to the speed of turning?
Title: Re: Turn to FaceLocation
Post by: TheJBurger on Tue 19/12/2006 17:06:52
That doesn't change anything either.Ã,  Ã, :-\

[EDIT]Nevermind, I figured it out. IT had something to do with repeating idle views and whatnot.Ã,  :-X