The Dink Network

Reply to Re: conversations with over 2 people

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 20th 2004, 01:35 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
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 = &current_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);
}