23-09-2006, 05:07 PM
William Wrote:@Pingu: So your saying that I should use this:
Code:x = GetPlayerX(Index) * PIC_X + sx + Player(Index).XOffset
y = GetPlayerY(Index) * PIC_Y - PIC_Y + sx + Player(Index).YOffset
If y < 0 Then
y = 0
If GetPlayerDir(Index) = DIR_DOWN And Player(Index).Moving > 0 Then
rec.Top = rec.Top - Player(Index).YOffset
Else
rec.Top = rec.Top - Player(Index).YOffset + PIC_Y
End If
End If
Trying wouldn't hurt. Just do it for the sprite only first and then make it work with the items later. I'm assuming you have scrolling going and it uses the same variables to work.