- Code: Select all
for(i=0;i<5;i++)
{
Y=i;
CreateActor("block", "BLOCKS", "(none)", "(none)", px+80, (py-80)+(Y*40), true);
lpos=(playerpos-30)+(Y*16);
}
so why, when Y*16 is 0 does playerpos-30 NOT equal playerpos-30? this makes no sense!
i tried if(i>0)Y++;
i tried Y++;
i tried other things, anyone had this issue before?
lpos is the assignment of a block to an array (my nomcraft loading system)
the 0 value is wrong, but when Y is > 0 everything works perfectly... just 1 odd number.
thanks savvy