- Code: Select all
int i, i2=(1+ActorCount("Tiles")), i3=i2/10000;
setpen(0, 0, 255, 0, 1);
for(i=0;i<i3;i++)
{
moveto(i, 0);
lineto(i, height);
}
Anybody have a working way of doing this? ^^ Prettymuch theres 100x100 tiles max, and I tried to take the ol' HP bad method but its not working quite like I thought lol, normally dividing something by a higher number would result in a decimal thus finding the percentage, but idk how the heck something with a high number like this would work
EDIT:
Found it =D I had to do Witdh* i2/i3 Example:
int i, i2=width*(1+ActorCount("Tiles")), i3=i2/10000;