Infinite for loop...

Posted by Shork on Jan. 26, 2007, 5:42 p.m.

I was trying to make an isometric grid system. I was using a for loop to set the x and y cooridinates of the lines endpoints. I thought it would be best to use a for loop in a for loop to make the offsets work. However, I didn't check the code very well, becuase when I hit go, the game screen didn't come up at all. I can't get it to come up. I can't get back into the GM screen either. I think I probably wrote a code that does the same thing as this:

for(n=0;n<j;n+=1){
     draw_text("You suck!",x,y)
     j += 10
    }

Of course it wasn't that exact piece of code, I'm not an idiot. I never would have put that "You Suck" line into my program.

Comments

Rob 18 years, 2 months ago

ctrl-alt-del the find the game?

Theodore III 18 years, 2 months ago

in the proccesses tab of task manager, you'll find the game, might look something like a6425 for example

FredFredrickson 18 years, 2 months ago

You can use div (I believe) to easily draw infinite grids.

shadowstrike32 18 years, 2 months ago

^or you can divide 2 numbers, subtract the floor of the quotient, and multiply it by the dividend

twisterghost 18 years, 2 months ago

Or just take the quotient of the sum of the mass of earth and multiply it by <i>i</i>, the stick it in the quadratic formula, take the determinant, and solve it for x.

Thats the easiest way to make an isometric grid, my friend.