Hi!
I'm quite new to sfml and not the master at c++ (coming from java).
Started a LevelEditor but i bonked right away:
I've showed sprites with pics (huge ones too like 1900x..) and everything went well.
The problem is with:
sf::Image* img = new sf::Image;
sf::Image Image1(10, 200, sf::Color(0, 255, 0));
ASprite* MenuBackground = new ASprite;
MenuBackground->SetImage(Image1);
MenuBackground->SetPosition(100, 100);
I'd expect a sprite 10 broad and 200 high. But what I get is a weird white rectangle with about 500 width and 100 height. The position is right, as I set it, but the color & dimensions not. Same happens, if I do the code/or without dynamic all. in the main method...
Could someone explain this phenomenon to me? Just trying to get a nice "background" for a vertical slice of the screen to show a list of sprites, wich then can be placed at the gamefield.
Thanks in advance!