Scripting help wanted
I've got 2 scripts on 2 different screens: aim: sprite talks to Dink, then moves of screen. The sprite is exactly the same on both screens and for both movements (to move sprite of screen) I used:
move(&gar, 4, 20, 1);
move(&gar, 4, -10, 1);
But with one script the sprite walks away nicely of screen (as he should), while with the other script he just vanish somewhere in the middle of the screen, without ever reaching the end of the screen.
The only thing that is different about the scripts, is that in the one where he DOES move away nicely, the sprite is created as:
int &gar = create_sprite(-10, 165, 0, 343, 1);
and then moves on screen with:
move(&gar, 6, 90, 1);
while with the other one (where he vanish into thin air) he shows up directly on screen with script:
int &gar = create_sprite(214, 195, 0, 343, 1;
That's the only difference. On both screens he can walk of screen with the x/y# given. The sprite is exactly the same.
So, what is going on here?? Please help, 'cause I've run out of options!
move(&gar, 4, 20, 1);
move(&gar, 4, -10, 1);
But with one script the sprite walks away nicely of screen (as he should), while with the other script he just vanish somewhere in the middle of the screen, without ever reaching the end of the screen.
The only thing that is different about the scripts, is that in the one where he DOES move away nicely, the sprite is created as:
int &gar = create_sprite(-10, 165, 0, 343, 1);
and then moves on screen with:
move(&gar, 6, 90, 1);
while with the other one (where he vanish into thin air) he shows up directly on screen with script:
int &gar = create_sprite(214, 195, 0, 343, 1;
That's the only difference. On both screens he can walk of screen with the x/y# given. The sprite is exactly the same.
So, what is going on here?? Please help, 'cause I've run out of options!