Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - MichX

Pages: [1]
1
Window / Re: Change window position - event
« on: September 30, 2014, 02:57:33 pm »
Thanks a lot! It's good idea ;-)

2
Window / Change window position - event
« on: September 30, 2014, 02:09:36 pm »
Hi, first of all sorry for my bad english.
I'd like to know is there any event or something when i catch the bar of window and start removing it (window)?
The problem is when i catch the window and dont let go other objects stop moving and when i let go of the window the objects do "big moving step". And I want call Update function when i have catching the window...

3
Graphics / Re: Connect textures - create biggest one
« on: September 23, 2014, 03:04:50 pm »
Thanks a lot! I'll try this.
Quote
May I ask why do you want to do this instead of manually putting all your sprites on a big image manually?
The answear is include in Your question - because it's manual ;-).

4
Graphics / Connect textures - create biggest one
« on: September 23, 2014, 03:30:25 am »
Hi, I'd like to know is it possible to create a texture using other textures in SFML?
I mean i have some textures e.g. 15x15px and i need to create bigger texture 45x45px using smaller textures.
Of course i can use array[3][3], but it's not enough comfortable for me in my case. I want to create automatically new texture.
Is it possible?
Plz help me ;).

5
Thanks a lot @G.
I will try to understand what u said ;-)

6
Hi,
Could anyone explain me what is a different between check event by KeyPressed and check the same event by isKeyPressed outside the loop of events?
I mean when should i use first method and when secound?
When i tried check differences the results were the same so I don't understand it ;/
best regards!

7
Graphics / Re: change a color of the Sprite
« on: February 07, 2014, 09:50:15 pm »
Thank's to You both! It works! I did green image and its color make problems... Now, when i copy image of dark ball everythink seems good ;-)
best regards!

8
Graphics / Re: change color of Sprite
« on: February 07, 2014, 09:04:21 pm »
It multiplies the colour you give it with the colours in the texture. White would mean that it allows all colours to pass through unmodified. Other colours tint the texture. Imagine holding different coloured glass/plastic over the texture image; white would represent clear.

EDIT: Also, you wouldn't be putting an sf::Color as a paramter to sf::Color.

Try this:
sprite.setColor(sf::Color::Red);
Thanks @Golden Eagle but it still doesn't work ;/
My code looks like below:
Code: [Select]
sf::Texture texture;
texture.loadFromFile("ball.png");
sf::Sprite sprite;
sprite.setTexture(texture);
sprite.setPosition(100, 25);
sprite.setColor(sf::Color::Red);
And Sprite changed a color but not for Red but almost black. I tried set meny of colors but it changed for black only.
I afraid it's not allowed to manipulate of color of a file ;/

9
Graphics / change a color of the Sprite
« on: February 07, 2014, 08:40:00 pm »
Hi, is it possible to change a color of the Sprite that based on texture loaded from file?
I tried
Code: [Select]
sprite.setColor(sf::Color(sf::Color::White));but it doesn't work ;/

Pages: [1]