SFML community forums

Help => General => Topic started by: GamDev on June 07, 2018, 05:44:35 pm

Title: sf::Drawable and two sprite on one position
Post by: GamDev on June 07, 2018, 05:44:35 pm
Hello, please tell me what I'm doing wrong
I have an image size of 128x64, that is 2 sprite.
I draw them like this:
(click to show/hide)
on 1 image my tileSet, the second result of the brown I'm trying to reach, and 3 that turns out
Tell me please how can I put sprite on the sprite?
Title: Re: sf::Drawable and two sprite on one position
Post by: eXpl0it3r on June 07, 2018, 06:05:14 pm
Easiest and most likely best looking solution is to create the tile in an image editor of your choosing.

If you grey part of the image is transparent, you could alpha blend them, but that will leave you with double as strong corner pieces.

Bet shaders can work some magic somehow, but at this point it's just overkill.

Create a tilesheet with all the images and the rotate accordingly when needed.