I've got a game I'm tidying up still in v.256d. I'm just gonna go with it in that version since the newer version seems so different. My prob is I have a room with a vulture that flys across the top of the screen when you enter. Works okay normally, but if you leave before it crosses the screen it starts up in weird places the next time you enter or just gets stuck in place. I can't wrap my head round it, so heres the little bit of code:
// room script file
int vcount;
// script for room: Player enters screen (after fadein)
//-----Vulture Movement--------------
if (vcount==0){
vcount++;
MoveCharacterDirect (V,46, 9);
}
else if (vcount==1){
Ã, vcount++;
character [V].x=259;
character [V].y=26;Ã,Â
MoveCharacterPath (V,163, 22);
MoveCharacterPath(V,143, 8);
MoveCharacterPath (V,167, 6);
MoveCharacterPath (V,49, 7);Ã,Â
}
else if (vcount==2){
Ã, vcount++;
Ã, }
else if (vcount==3){
vcount=1;Ã, Ã,Â
character [V].x=86;
character [V].y=6;
MoveCharacterPath (V,219, 34);
MoveCharacterPath (V,167, 6);
MoveCharacterPath (V,281, 12);
}
//------------------------------------------------
Anubody have any ideas?
// room script file
int vcount;
// script for room: Player enters screen (after fadein)
//-----Vulture Movement--------------
if (vcount==0){
vcount++;
MoveCharacterDirect (V,46, 9);
}
else if (vcount==1){
Ã, vcount++;
character [V].x=259;
character [V].y=26;Ã,Â
MoveCharacterPath (V,163, 22);
MoveCharacterPath(V,143, 8);
MoveCharacterPath (V,167, 6);
MoveCharacterPath (V,49, 7);Ã,Â
}
else if (vcount==2){
Ã, vcount++;
Ã, }
else if (vcount==3){
vcount=1;Ã, Ã,Â
character [V].x=86;
character [V].y=6;
MoveCharacterPath (V,219, 34);
MoveCharacterPath (V,167, 6);
MoveCharacterPath (V,281, 12);
}
//------------------------------------------------
Anubody have any ideas?