The Dink Network

Reply to Re: Question: How to change a 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:
 
 
January 24th 2005, 04:25 PM
peasantmg.gif
Raven
Peasant He/Him Sweden
 
Ok
Right now, the script look like this. It is attached to the shelf with pots from the standard sprite library (in slot 64 , sprite number 1). I want to change it to a sprite I have loaded from
my graphics folder, to slot 66, sprite number 65.

The script:

void main( void )
{
}

void talk( void )
{
if (&ming < 2)
{
say_stop("A nice collection of ming vases.", 1);
wait(100);
}
if (&ming >= 2)
{
say_stop("A nice collection of ming sherds.", 1);
wait(100);
}
}

void hit (void)
{
if (&ming == 1)
{
&ming = 2;
// Exchange the sprites here somehow

say_stop(" Ha ha, just sherds, you will be fired, stupid port guard! ", 1);
wait(100);
}
if (&ming == 0)
{
say_stop(" I will not destroy anything with out a reason!", 1);
}
}