Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Puppet Master on Mon 19/09/2005 01:32:56

Title: Character Changes: SOLVED
Post by: Puppet Master on Mon 19/09/2005 01:32:56
Hi, I'm new here. If you go to Gaming World You may know that I am working on a game called "THE FATE OF KYBERIA" which no one over there cares about. Anyway, back to the topic. In my game I need to know how to change characters through the game. (like in rob blanc 2 and 3) If you could show me the script I would highly appreaciate it. Bye.
Title: Re: Character Changes
Post by: GarageGothic on Mon 19/09/2005 03:39:54
Use the command Character.SetAsPlayer().

if your characters' script names are Ego1 and Ego2, you can do:

cEgo2.SetAsPlayer();

and to return to the other one,

cEgo1.SetAsPlayer();

Title: Re: Character Changes
Post by: Puppet Master on Mon 19/09/2005 23:25:29
Thanx! I'll try this out.