Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Feature] Dynamic sprite sizes!
#55
Using Giaken's clipping code, I'm trying to modify it a bit to work with Advocate/Matt's dynamic maps version of MS4. The X clipping works fine as:

Code:
' Is player's X more than max map values..?
    If X + (DDSD_Sprite(Sprite).lWidth / 12) > MAX_MAPX * 32 + 32 Then
        With rec
            .Right = .Right - ((Map.MaxX / 2) - 24)
        End With
    End If

I know the formula should be similar for the Y clipping, but I can't seem to get it to work properly. Any ideas?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)