Reply to Re: conversations with over 2 people
If you don't have an account, just leave the password field blank.
There are a few different ways to accomplish this, but you're almost to the point of understanding the easiest way.
Right, &badger is a global variable that is used to refer to the 'Badger' chracter. All you need to do is give Badger a script, with something simple like this in it:
//badger.c
void main(void)
{
&badger = ¤t_sprite;
}
And it should work fine. As an alternative, you could use create_script to place the characters on the screen and not worry about different scripts and globals and such. Something like this should work (for a cutscene-esque thing anyway):
void main(void)
{
int &guy1 = create_sprite(300, 200, 9, 371 1);
int &guy2 = create_sprite(400, 150, 9, 363, 1);
int &guy3 = create_sprite(200, 400, 9, 357, 1);
freeze(1);
say_stop("`1Hello!", &guy1);
say_stop("`2Hello!", &guy2);
say_stop("`3Hello!", &guy3);
//And for people talking at the same time,
//give the last one a say_stop
say("`1I am talking at the same time as you!", &guy1);
say_stop("`2Indeed you are!", &guy2);
unfreeze(1);
}
Right, &badger is a global variable that is used to refer to the 'Badger' chracter. All you need to do is give Badger a script, with something simple like this in it:
//badger.c
void main(void)
{
&badger = ¤t_sprite;
}
And it should work fine. As an alternative, you could use create_script to place the characters on the screen and not worry about different scripts and globals and such. Something like this should work (for a cutscene-esque thing anyway):
void main(void)
{
int &guy1 = create_sprite(300, 200, 9, 371 1);
int &guy2 = create_sprite(400, 150, 9, 363, 1);
int &guy3 = create_sprite(200, 400, 9, 357, 1);
freeze(1);
say_stop("`1Hello!", &guy1);
say_stop("`2Hello!", &guy2);
say_stop("`3Hello!", &guy3);
//And for people talking at the same time,
//give the last one a say_stop
say("`1I am talking at the same time as you!", &guy1);
say_stop("`2Indeed you are!", &guy2);
unfreeze(1);
}