|
Post by u9 on Oct 29, 2006 6:23:41 GMT -5
Graphics.TileImage( image, startx, starty ) does not "work" if the image is scaled. I think the images should align next to each other even if the image is scaled.
That said, obviously it doesn't work with rotated images either. That would also be nice, but i suspect it would be a bit difficult to calculate where they should be rendered in order to get them aligned.
|
|
|
Post by Guilect on Oct 29, 2006 10:24:45 GMT -5
For now can you just apply the same scaling to the x,y location? Like so:
Graphics.TileImage( image, startx * Scalex , starty * Scaley )
I will see about having Brutus2D do it automatically in a future release.
|
|
|
Post by u9 on Oct 29, 2006 13:47:25 GMT -5
No I think you misunderstood. Try adding this at line 77 right after loading the background image
graphics.setscalexy background, 0.9, 0.9
Now you should see that the background image isn't tiled perfectly. There is a black gap between the tiles. What I suggest is that the graphics.TileImage command tile the images according to how they are scaled. I don't mean changing the x and y position, but rather how they are positioned next to each other.
Your suggestion is easy to implement, and should probably not be in tileimage by default.
|
|