VB Code:
  1. Let I = Map.Object(L, X, Y)
  2.                     If Not I < 0 And Not I > TileObjectCount Then
  3.                         Let rTile.Left = 0
  4.                         Let rTile.Top = 0
  5.                         Let rTile.Right = TileObjects(I).Width
  6.                         Let rTile.Bottom = TileObjects(I).Height
  7.                        
  8.                         Let xObject = xDest - rTile.Right \ 2 * TileWidth
  9.                         If xObject < 0 Then
  10.                             Let rTile.Left = -xObject
  11.                         End If
  12.                        
  13.                         Let yObject = yDest - rTile.Bottom + TileHeight
  14.                         If yObject < 0 Then
  15.                             Let rTile.Top = -yObject
  16.                         End If
  17.                        
  18.                         Call BufferSurface.ddSurface.BltFast(xObject, yObject, TileObjects(I).ddSurface, rTile, DDBLTFAST_WAIT Or DDBLTFAST_SRCCOLORKEY)
  19.                     End If

when i place an object i use this code to draw it. but when you scoll my map and the object rect goes offscreen it still disapears the xObject, Yobject code is what i use to try to keep it on the surface but it doesnt work HELP.