Reply to Re: Question: How to change a sprite?
If you don't have an account, just leave the password field blank.
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);
}
}
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);
}
}