Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Steel Drummer on Fri 19/05/2006 22:26:13

Title: Getting over four background frames
Post by: Steel Drummer on Fri 19/05/2006 22:26:13
How do I get more than four background animation frames?
Title: Re: Getting over four background frames
Post by: Candle on Sat 20/05/2006 05:01:12
I think that is all you can have.
Title: Re: Getting over four background frames
Post by: Akumayo on Sat 20/05/2006 08:06:34
Look into the RawDraw commands...
Title: Re: Getting over four background frames
Post by: Ashen on Sat 20/05/2006 19:36:34
The limit is actually 5 (the 'main' one, and the four you can set in the Animating Backgrounds dialogue).

However, depending on what you want to animate you may be better using objects/characters instead of the background frames.
Title: Re: Getting over four background frames
Post by: Steel Drummer on Sat 20/05/2006 19:45:50
another thing regarding animation: how do I make characters walk in one continuos path without making the game stop (eg: in BASS, characters walked certain places at certain times but you didn't have to wait for them).
Title: Re: Getting over four background frames
Post by: SSH on Sat 20/05/2006 19:50:56
Use the NonBlocking parameter to char.Walk
Title: Re: Getting over four background frames
Post by: Saberteeth on Sat 20/05/2006 20:27:12
Yes, instead of doing:


MoveCharacterBlocking(EGO,319,199);


Do this:

Random(5);
if (Random(5)==1) (MoveCharacter(EGO,318,198));
if (Random(5)==2) (MoveCharacter(EGO,218,198));
if (Random(5)==3) (MoveCharacter(EGO,318,98));
if (Random(5)==4) (MoveCharacter(EGO,38,19));
if (Random(5)==5) (MoveCharacter(EGO,18,18));

Since MoveCharacter is non-blocking, you can use this for random walk around(for NPCs preferably).

*Saberteeth now feels guilty as he is probably the only one still using AGS 2.62 :-[