multiple characters walking at once?

Started by lilinuyasha, Mon 27/12/2010 06:56:56

Previous topic - Next topic

lilinuyasha

how would i make multiple onscreen characters walk to a specific location at once? is this possible?
I can Fluently speak Braille. I obtained a swiss army knife...From the Turkish Navy. My hands feel like rich brown suede. My blood smells like cologne. I AM Trey Love, The most Interesting Man in the World.

Khris

Yes, sure, just make them walk non-blocking.

You're very quick to post here, maybe give it some time trying to figure it out yourself next time?

lilinuyasha

so i make all of them walk eNoBlock?
I can Fluently speak Braille. I obtained a swiss army knife...From the Turkish Navy. My hands feel like rich brown suede. My blood smells like cologne. I AM Trey Love, The most Interesting Man in the World.

Khris

Say you want three characters to cross the screen at the same time but blocking, i.e. the script continues after they all moved:

Code: ags
  cGuy1.Walk(300, 170);
  cGuy2.Walk(300, 180);
  cGuy3.Walk(300, 190, eBlock);


This sends off the first two in the background, then cGuy3 blocking, i.e. halts the script execution until cGuy3 reached his destination. Thus the character who'll take the longest is supposed to go last and blocking.

As you can see, the solution is pretty straightforward and simple. You could have figured that out on your own. These forums are literally the last resort when it comes to script problems, please try some stuff before opening a thread.

SMF spam blocked by CleanTalk