Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: remmies on Tue 06/07/2004 14:53:40

Title: more than one playable character
Post by: remmies on Tue 06/07/2004 14:53:40
 :P does neone know how i can make it in a game so that u r allowed to choose between different characters to play as such as a girl or a boy
Title: Re: more than one playable character
Post by: SilverWizard_OTF on Tue 06/07/2004 15:03:50
You should be more specific. What kind of game is it? Will the game be different, according character's selection? Anyway, if it is just the character that changes, then:

First create these two characters
Then you should need the script function SetPlayerCharacter. According player's selection,  you will define who will be the Player Character.

For example: Let's say that Boy's script name is BOY and girl's is GIRL

Then when the player chooses the girl, then run script:
                                                                        SetPlayerCharacter (GIRL);
Title: Re: more than one playable character
Post by: remmies on Tue 06/07/2004 18:27:20
 ;Dok that helps a bunch but now that u mention it how wood i make i so that the different character has aq different story
Title: Re: more than one playable character
Post by: Proskrito on Tue 06/07/2004 19:02:35
you can make decissions by checking who is the player character:

if (GetPlayerCharacter()==BOY) {
do something;
}
else { // if its the girl
do other things
}
Title: Re: more than one playable character
Post by: TerranRich on Tue 06/07/2004 21:52:26
Added to the BFAQ: http://bfaq.terran-x.com/#graphics20
Title: Re: more than one playable character
Post by: SilverWizard_OTF on Wed 07/07/2004 12:38:18
It is simple. Let's say that you have a screen, where the player must  choose between the two characters. When he chooses for example the girl, he would go to room 5. If he chooses the boy, he would go to room 6. By this way, you will have two games in one. From room 5 (which will be different  from 6) player will go for example to room 7). But if he has selected the boy, from room 6 he will next go for example to room 8 (which will be different from room 7).

You could use the same backgrounds, but different plot.
I mean, that at Boy's game, level 1 it can be same with Girl's level 1, but it can just have different riddles and facts that will take place in.

It looks a little complicated, and maybe it is. But if you want to add some variety to your game, you could try it. You can make these character to find themselves together at the last level, for example! Great idea, isn't it?
Title: Re: more than one playable character
Post by: remmies on Wed 07/07/2004 19:28:00
wow ok now i think i can do it thanx for all of your help i', in the process of making my first game which eventually i will post sum screens in the in production forum section
Title: Re: more than one playable character
Post by: SilverWizard_OTF on Wed 07/07/2004 19:34:31
And what's the name of your game? (I think that when you will finish it, i will download it!)
Title: Re: more than one playable character
Post by: remmies on Wed 07/07/2004 19:50:43
right at the moment the test name is "doll" but it might change i'm trying to make it pretty cool thanx fur thinking about downloading

but hopefully i can get sum screens in the forum today so look up dolls int he in games production section if you wanna c

[size=+8](Please don't double-post. Thanks. :))[/size]
Title: Re: more than one playable character
Post by: SilverWizard_OTF on Thu 08/07/2004 10:32:19
Just one last hint: You can have these two character to play together at the same time.

To the script editor, on_key_press function, you can specify a key for the BOY and a key for the GIRL

When the player clicks the BOY key, he will playthe Boy character
(SetPlayerCharacter (BOY) and when he clicks the GIRL key, he will play the Girl character (SetPlayerCharacter (GIRL).
   With this way, the player has these two character at the same time. 

When has stuck with the Boy, with ONE click he goes to Girl's game. With another one click, he returns to Boy's game!  It is also a good idea that some riddles need the co- operation of both characters to achieve in their mission.

Maybe at the end the player must complete both boy's game and girl's game to win!
Title: Re: more than one playable character
Post by: remmies on Thu 08/07/2004 21:31:01
 :o whoa thats a great idea lol thanx a bunch