Reply to Another problem about external
If you don't have an account, just leave the password field blank.
In my DMOD, a sprite runs a script, where I put the following command:
external("dot1", "change");
to change the frame of another sprite. The "change" procedure is the following:
void change(void)
{
Playsound(17,22050,0,0,0);
sp_pframe(&d1, 2);
&s1 = 10;
}
in the main procedure of dot1, I put the command : &d1 = ¤t_sprite , and &d1 is a global variable.
If I let the ¤t_sprite, the sprite who calls the external(...) changes.(I guess he is the current sprite in that moment)
Sometimes, it does the specified action, but sometimes it changes the frame for another dot, or sprite (I have 9 dots). I guess the sprite number changes.
Can someone tell me how to fix this bug?
external("dot1", "change");
to change the frame of another sprite. The "change" procedure is the following:
void change(void)
{
Playsound(17,22050,0,0,0);
sp_pframe(&d1, 2);
&s1 = 10;
}
in the main procedure of dot1, I put the command : &d1 = ¤t_sprite , and &d1 is a global variable.
If I let the ¤t_sprite, the sprite who calls the external(...) changes.(I guess he is the current sprite in that moment)
Sometimes, it does the specified action, but sometimes it changes the frame for another dot, or sprite (I have 9 dots). I guess the sprite number changes.
Can someone tell me how to fix this bug?