The Dink Network

Reply to Re: NPCs

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:
 
 
February 24th 2003, 06:27 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
That's not exactly the best way to be doing it, since it won't work if you're using visions. Either put :
&spr_one = &current_sprite in the first sprite's main procedure and :
&spr_two = &current_sprite in that of the second and add these 2 variables to main.c. Mind you that I do not advice you to do this with every sprite since you only have a limited number of globals available.
The other way you can do this is create them inside a (base) script by doing :
int &spr_one = create_sprite(x, y, brain, seq, frame); and the same for &spr_two. Then you can access these sprites inside the current script. This probably makes it more complicated, but if you're working with visions there's no other way.