Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bltPlayer & bltPlayerTop
#5
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)