Reply to Re: Question: How to change a sprite?
If you don't have an account, just leave the password field blank.
void main( void )
{
if (&ming > 1)
{
sp_pseq(¤t_sprite, 66);
sp_pframe(¤t_sprite, 65);
//If the hardnesses of the two sprites differ from each other and you want to change it then the next command too.
draw_hard_sprite(¤t_sprite);
}
}
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;
sp_pseq(¤t_sprite, 66);
sp_pframe(¤t_sprite, 65);
//If the hardnesses of the two sprites differ from each other and you want to change it then the next command too.
draw_hard_sprite(¤t_sprite);
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);
}
}
Is that what you want? Or do you want a bottle on the shelf to break when you hit the shelf? :confused:
{
if (&ming > 1)
{
sp_pseq(¤t_sprite, 66);
sp_pframe(¤t_sprite, 65);
//If the hardnesses of the two sprites differ from each other and you want to change it then the next command too.
draw_hard_sprite(¤t_sprite);
}
}
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;
sp_pseq(¤t_sprite, 66);
sp_pframe(¤t_sprite, 65);
//If the hardnesses of the two sprites differ from each other and you want to change it then the next command too.
draw_hard_sprite(¤t_sprite);
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);
}
}
Is that what you want? Or do you want a bottle on the shelf to break when you hit the shelf? :confused: