   Turbo Delphi Compiler Error
  Hi everyone.Wondering if you can help me with a strange problem in my Turbo Delphi.Finally after a few days of coding my "Basic" collision code was done.I was at school and a friend asked me to test run it, however I had closed the project in Delphi. So I just ran it from the .exe it ran perfectly.So you can imagine my disappointment and frustration when I got home and started working on my game, to find that when I compile the project from within Delphi (for testing) I can move my character anywhere.Now what makes this bizarre is that when I run the project from my .exe (after an an unsuccessful compile)  its all good (collision works fine) but when I compile it in Delphi the compiler seems to "ignore" the collision section of the code. The char WILL move to any grid reference.//Stores each cell value N= can't move here and Y= Can. (it's a rectangle grid)ObjArr: Array[1..32,1..20] of string;//Used to determine movement directionfunction TMap.CalcMovment(Direction: Char): Boolean;Var  Xpos,YPos: Integer;begin  XPos:= TheCharacter.GetXPos;  YPos:= TheCharacter.GetYPos;  If Direction = 'W'    Then Ypos:= Ypos-1    Else If Direction = 'S' Then Ypos:= Ypos+1 Else If Direction = 'D'   Then Xpos:= Xpos+1   Else Xpos:= Xpos-1;  If CalcCollision(XPos,YPos) = False //Calls collision checker.    Then Begin TheCharacter.SetXPos(Xpos); TheCharacter.SetYPos(Ypos)    End;//Checking if you try move to a "cell" with a N value (which u can't)function TMap.CalcCollision(FX, FY: Integer): Boolean;begin  If Uppercase(ObjArr[Fx,Fy]) <> 'N'    Then If (Fx >= 1) AND (Fx <= (SizeX)) Then If (FY >= 1) AND (FY <= (SizeY))    Then Result:= False    Else Result:= True;end;   //Finally this is used to convert the X&Y positions into new pixel co-ordinatesImgChar.Top:= ((25*TheCharacter.GetYPos)+25);ImgChar.Left:=((25*TheCharacter.GetXPos)-25); (character is not very big)   
  I think you won't get any answer since most of people don't use Delphi. You should check this site and post your question:http://www.pascalgamedevelopment.com/forum/index.php?action=forum   