Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: viktor on Sat 26/06/2004 12:43:49

Title: loops!?
Post by: viktor on Sat 26/06/2004 12:43:49
I have a wiew and 3 loops in it. The first one is down the second is left and the tird is right.
I don't have an up wiew jet. At first everithing worked fine but now sudenly the first loop doesn't want to cooporate. So when the player is supose to walk down he actualy walks righ and is moving downward. What's up with that?
Title: Re: loops!?
Post by: Scorpiorus on Sat 26/06/2004 13:34:33
Make sure the loops are set as follows:

Loop 0 - walking down (towards screen)
Loop 1 - walking left
Loop 2 - walking right
Loop 3 - walking up (away from screen)
Loop 4 - walking diagonally down-right
Loop 5 - walking diagonally up-right
Loop 6 - walking diagonally down-left
Loop 7 - walking diagonally up-left
Title: Re: loops!?
Post by: viktor on Sat 26/06/2004 14:10:58
I know that but for some reason my first loop won't animate.
Title: Re: loops!?
Post by: Scorpiorus on Sat 26/06/2004 16:09:52
Check if the view you are talking about is the one that's assigned to a character.

Did you change the character's walking view with the interaction or script commands? Or did you just set it from the characters pane in the editor?

If you changed his walking view via Interaction Editor, make sure that you used a Character - Changed view command and not a Character - Set view one.

Also, how did it work before if the character view misses one direction loop?
Title: Re: loops!?
Post by: Mr Flibble on Sat 26/06/2004 16:11:30
Is it possible that you deleted the sprites by accident?
Title: Re: loops!?
Post by: viktor on Sat 26/06/2004 16:34:46
Quote from: Mr Flibble on Sat 26/06/2004 16:11:30
Is it possible that you deleted the sprites by accident?


nope. I can still se them in the editor.

QuoteCheck if the view you are talking about is the one that's assigned to a character.

Did you change the character's walking view with the interaction or script commands? Or did you just set it from the characters pane in the editor?

If you changed his walking view via Interaction Editor, make sure that you used a Character - Changed view command and not a Character - Set view one.

Also, how did it work before if the character view misses one direction loop?
   

I must've done something wrong becouse yesterday the walkcicle still worked normaly. And now...
But there is one funny thing. I have the game set so that the character turns before walking. And the character does turn. The front wiew is actualy seen when he turns...

EDIT: Strange. I experimented a bit. I added a walk up loop. And now the character runs normaly.
Title: Re: loops!?
Post by: Alynn on Sat 26/06/2004 16:46:20
Have you tried turning off diagnal loops.... thats what the problem sounds like...
Title: Re: loops!?
Post by: strazer on Sat 26/06/2004 16:57:14
I vaguely remember some weird behaviour when a loop was missing, but I think this has been fixed since.
Which version of AGS are you using?
Title: Re: loops!?
Post by: viktor on Sat 26/06/2004 17:06:55
I'm useing the latest version. Don't wory. I found out what the problem was. And yes i had the diagonal loops turned of.  I just added an up loop and the problem was fixed. I don't exactly know why though... ???
Title: Re: loops!?
Post by: Scorpiorus on Sat 26/06/2004 17:23:44
There was a feature added into AGS - when the character is walking up/down and there is no appropriate loop specified AGS uses the right/left loops instead.
Title: Re: loops!?
Post by: Primus on Sat 26/06/2004 19:45:40
I'm glad you've solved the problem.  :D
Anyway I found here a tutorial about loops...

http://www.agsforums.com/acintro.htm
http://www.agsforums.com/acintro7.htm
Title: Re: loops!?
Post by: Hollister Man on Sun 27/06/2004 16:45:55
Yeah, it was actually my suggestion...

The engine now uses only left and right if either up or down is missing.  That way, you can still have a decently usable game without animating four ways, only one side view.