The Dink Network

Reply to Re: scripting q

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 3rd 2003, 10:53 AM
old.gif
: Dink is placed to a screen (script_attach, player map change etc), then a follower sprite is created (spawn("friend")) and end of that script. On the screen is some other object, whose script the below is:

: void main( void )

: {

: freeze(1);

: wait(200);

: move_stop(1, 8, 300, 0);

: freeze(&sprite2);

: fade_up();

: say_stop("I'm saying things just for an example!", &sprite2);

: unfreeze(1);

: unfreeze(&sprite2);

: }

: And sprite2 doesn't say a thing.. anyone?

first of all, if the sprite is NOT spawned, then use &current_sprite, if it IS spawned ( and always do this ) make sure &sprite2 is a GLOBAL int, not a int created in a script...