SFML community forums

Bindings - other languages => DotNet => Topic started by: manawyrm on May 05, 2012, 10:22:35 pm

Title: Spriteoverlapping
Post by: manawyrm 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 (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]
Title: Re: Spriteoverlapping
Post by: manawyrm on May 05, 2012, 10:40:15 pm
Ah. Updating to 2.0 solved this issue ;)