Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Spriteoverlapping  (Read 1966 times)

0 Members and 1 Guest are viewing this topic.

manawyrm

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Spriteoverlapping
« on: May 05, 2012, 10:22:35 pm »
Hello,

first sorry for my broken english -- im from germany.

i wanted to generate a static background out of some grass tiles. (attachment)

To accomplish this i have written the following code:
Code: [Select]
   For x As Integer = 0 To 20
            For y As Integer = 0 To 20
                Dim image As New Graphics.Sprite(i)
                image.Position = New Graphics.Vector2((x * 15), (y * 15))
                RenderWindow.Draw(image)
                image.Dispose()
            Next
        Next

The sprites have some nasty border around them. (http://tbspace.de/holz/xgixgrqlosc.png)
Does anybody know how to fix that? I already tried playing around with BlendMode, but it didn't help.

Thanks,
Tobias

[attachment deleted by admin]
« Last Edit: May 05, 2012, 10:26:15 pm by manawyrm »

manawyrm

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Spriteoverlapping
« Reply #1 on: May 05, 2012, 10:40:15 pm »
Ah. Updating to 2.0 solved this issue ;)