Hey all... erm... the best way to describe what i'm doing is stars flying from random points at the top of the screen to the base of the screen... That's no drama, I've got four (o2,o3,o4,o5) "stars" (so i can have more than one on the screen at a time without issues), and they run through fine the first time, but when i reset V64 (basically the timer for when the stars actually start and end), the stars start from further down the screen around the 40agi-pixel mark... For the life of me i can't work out why. Heres part of the code for it:
if (isset(f50)) {
v64++;
if (!isset(f60)) {
if (v64 == 10) {
get.posn(o1,v61,v62);
v71 = 34;
position.v(o2,v61,v71);
draw(o2);
v70 = 130;
move.obj.v(o2,v61,v70,150,f45);
}
if (v64 == 30) {
get.posn(o1,v61,v62);
v71 = 34;
position.v(o3,v61,v71);
draw(o3);
v70 = 130;
move.obj.v(o3,v61,v70,150,f46);
}
if (v64 == 60) {
get.posn(o1,v61,v62);
v71 = 34;
position.v(o4,v61,v71);
draw(o4);
v70 = 130;
move.obj.v(o4,v61,v70,150,f47);
}
if (v64 == 65) {
get.posn(o1,v61,v62);
v71 = 34;
position.v(o5,v61,v71);
draw(o5);
v70 = 130;
move.obj.v(o5,v61,v70,150,f48);
}
if (v64 == 70) {
v61 = 0;
v70 = 0;
v62 = 0;
v64 = 0;
}
}
}
if (isset(f45)) {
reset(f45);
erase(o2);
}
if (isset(f46)) {
reset(f46);
erase(o3);
}
if (isset(f47)) {
reset(f47);
erase(o4);
}
if (isset(f48)) {
reset(f48);
erase(o5);
}
Basically, It randomly generates a horizontal position (vertical is preset...), and the "star" then moves to the base of the screen (move.obj.v), when it gets there the "star" is erased, until the timer reaches 70, and then it resets and starts again.
But then the preset vertical position somehow (Through elven magic maybe?...) defies itself and goes further down the screen, so the the stars start somewhere around the centre of the screen.
Long winded am I, indeed.
I've tried setting the variable (71) exactly at the point it is used, and STILL it happens.
*sigh*
Any help would be much appreciated