Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bltPlayer & bltPlayerTop
#4
@Misunderstood: It didn't do any difference, here is what it looks like:
[Image: errorgs0.png]

And here is the new code:
Code:
If Y < 0 Then
        With rec
            .top = .top + (Y * -1)
        End With
        Y = 0
    End If

@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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)