Getting over four background frames

Started by Steel Drummer, Fri 19/05/2006 22:26:13

Previous topic - Next topic

Steel Drummer

How do I get more than four background animation frames?
I'm composing the music for this game:



Candle


Akumayo

"Power is not a means - it is an end."

Ashen

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.
I know what you're thinking ... Don't think that.

Steel Drummer

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).
I'm composing the music for this game:



SSH

Use the NonBlocking parameter to char.Walk
12

Saberteeth

#6
Yes, instead of doing:

Code: ags

MoveCharacterBlocking(EGO,319,199);


Do this:
Code: ags

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 :-[

SMF spam blocked by CleanTalk