The Dink Network

Reply to Re: About creating a sprite from a script attached to the screen

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:
 
 
March 23rd 2003, 02:03 AM
wizardb.gif
Phoenix
Peasant He/Him Norway
Back from the ashes 
Depends on the method you make him.. if you make him in DinkEdit, you pick up the sprite, as if you're gonna move it, then hold down SHIFT and click 5, then it asks for the script name, say you have a script called "knight.c", then you enter "knight" (without the .c), and it should work.

If you made the knight with the create_sprite(); command, you must do something like so:

int &knight = create_sprite(values);
sp_script(&knight, "knight");

I think. My DinkC is getting a little rusty, but I think that is how you do it. And if you don't understand what I've just babbled about, I'd suggest you read the txt files in the dink smallwood folder through first.