Reply to Arrows sticking in a shadow, what's going wrong?
If you don't have an account, just leave the password field blank.
I'm currently making a cave which is very dark, and if you hit a stone with an arrow, the darkness should go away. One problem: The arrows keep sticking in the darkness sprite
(a LOT of seq 30 frame 3 tiled in paint and saved it as another pic my-12.bmp).
Here are the Dink.ini lines of it:
load_sequence_now graphics\my- 850
SET_SPRITE_INFO 850 12 1 1 -1 -1 1 1
And this is the script attached to the object that creates the shadow:
void main( void )
{
sp_pseq(¤t_sprite, 1);
sp_pframe(¤t_sprite, 1);
int &crap;
int &xie = sp_x(¤t_sprite, -1);
int &yie = sp_y(¤t_sprite, -1);
&crap = create_sprite(&xie, &yie, 0, 850, 12);
sp_que(&crap, 1000);
&shadow = &crap;
sp_brain(&crap, 15);
sp_brain_parm(&crap, ¤t_sprite);
sp_nohit(&crap, 1);
}
(partially stolen from lantern scripts)
I can see the darkness floating above everything, but when I shoot with the bow, the arrow will just stick in the shadow.
What is wrong???
(a LOT of seq 30 frame 3 tiled in paint and saved it as another pic my-12.bmp).
Here are the Dink.ini lines of it:
load_sequence_now graphics\my- 850
SET_SPRITE_INFO 850 12 1 1 -1 -1 1 1
And this is the script attached to the object that creates the shadow:
void main( void )
{
sp_pseq(¤t_sprite, 1);
sp_pframe(¤t_sprite, 1);
int &crap;
int &xie = sp_x(¤t_sprite, -1);
int &yie = sp_y(¤t_sprite, -1);
&crap = create_sprite(&xie, &yie, 0, 850, 12);
sp_que(&crap, 1000);
&shadow = &crap;
sp_brain(&crap, 15);
sp_brain_parm(&crap, ¤t_sprite);
sp_nohit(&crap, 1);
}
(partially stolen from lantern scripts)
I can see the darkness floating above everything, but when I shoot with the bow, the arrow will just stick in the shadow.
What is wrong???