The Dink Network

Reply to Re: Resizing sprite

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:
 
 
June 4th 2016, 07:25 PM
spike.gif
I've no idea how to control, let's say 3rd sprite in a conversation unless I've declared him as a variable.

The "brain trick" works well for building cutscenes. I.e. in the editor, give each sprite a different brain. This allows you to pick them up easily in the script by using get_sprite_with_this_brain.

Example:
void main
wait(1)
int &bob = get_sprite_with_this_brain(20,0)
int &bobina = get_sprite_with_this_brain(21,0)
int &bobalina = get_sprite_with_this_brain(22,0)
int &bobinalinatrix = get_sprite_with_this_brain(23,0)
}

It works rather less well in Windinkedit than Dinkedit (because you can't assign non-existing brains in WDE), but it can done with the default brains, as long as you remember to change the brains after picking the sprites. (A townsperson with a duck brain isn't a pretty sight)