Thread: keyDown check?
View Single Post
  #22  
Old 09-18-2006, 08:52 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally Posted by projectigi
NPC Code:

for( this.dy = 0; this.dy < 128; this.i1++ )
{
for( this.dx = 0; this.dx < 128; this.dx++ )
{
this.map[ this.dx ][ this.dy ] = int( random( 1, 3.99 ));
}
}


thats my loop :P
NPC Code:
for( this.dy = 0; this.dy < 128; this.i1++ )



You are adding this.i1 instead of this.dy, which I assume you meant to do. That is going to cause an infinite loop.
__________________

Reply With Quote