HI Paul,
Thanks, SetSpriteUVBorder( n, 0.5 ) works fine.
I have tried to put 1 pixel border around each tile, but it doesn't work and I don't know why :
Here is a test code :
SetWindowTitle( "2D_tile" )
SetWindowSize( 1024, 768, 0 )
SetVirtualResolution( 1024, 768 )
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
SetClearColor(100,100,100)
SetViewZoom(4)
LoadImage(1,"Tiles_32x32_.png")
w = GetImageWidth(1)
h = GetImageHeight(1)
caz = w/8
For i=1 to 20
CreateSprite(i,1)
SetSpriteAnimation(i,w/8,h/8,64)
SetSpriteFrame(i,i)
SetSpritePosition(i,mod(i,6)*caz,(i/5) * caz)
// SetSpriteUVBorder(i,1) // to not have the artefact but no need to add 1 pixel around the tile ?
next
do
Sync()
loop
The tileSet I have changed (I have added 1 pixel around each tile) is attached.
A screenshot of the artefact is attached too.
is there a way to avoid that , with the "1 pixel around the tiles - technic" ?
I have used the tileset found here :
http://opengameart.org/content/platform-tileset-nature
AGK2 tier1 - http://www.dracaena-studio.com