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 - Sebox

Pages: 1 [2]
16
General / Static library
« on: September 29, 2014, 08:50:37 pm »
Hello

I dont have more force to make my program to work with static. Please look at this and enlighten me.













I searched the internet and could not find a satisfactory solution.

17
Network / Problem with login to FTP
« on: September 27, 2014, 06:41:39 pm »
Hello

I have problem, i try to login to my ftp and i have different error.
Unhandled exception at at 0x75D4B727 in keysfml.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0017EC68.

sf::Ftp ftp;
ftp.connect("ftp.test3.keed.pl");
ftp.login("blabla", "blabla123");

If i delete line of login i dont have error. What's problem ?






EDIT:

Resolved - i has problem with library.

18
Window / Close console, only process
« on: September 27, 2014, 11:45:41 am »
Hello

I would like to know that application can be only see in process, no console no window, only in process ??

Thanks in advance for your answers.

19
Window / Re: Active event
« on: September 23, 2014, 06:54:19 pm »
Thanks for help but i think its not be sufficient precision what it needs, so if event dont be work in minimize i think i have to look for other way  :(

20
Window / Re: Active event
« on: September 23, 2014, 06:25:01 pm »
Yes i saw this way but when i click something the program receive several times this sign, because i click this at some time and processor many times it took. So i think i need something like but no (sf::Keyboard::isKeyPressed(sf::Keyboard::Left))  but (sf::Keyboard::isKeyReleased(sf::Keyboard::Left))  but i dont know if such a thing exists.

21
Window / Active event
« on: September 23, 2014, 05:34:01 pm »
Hello everyone!

I have problem with event. I have to make program which can receive event when the window is inactive and active. For example: i run the program and click something in keyboard - ok now its work but when i minimize the program, the event doesn't work i dont have idea how to solve.

Thanks in advance for your answers.

22
Graphics / Re: Problem with stars
« on: August 05, 2014, 01:23:41 pm »
std::vector<sf::Sprite> stars;

stars.push_back(spritegwiazda);
stars.push_back(spritegwiazda1);
stars.push_back(spritegwiazda2);

vector<sf::Sprite>::iterator it;
       
for( size_t i = 0; i < stars.size(); ++i )
{
        oknoaplikacji.draw(stars[i]);
}
if(spritesheet.getGlobalBounds().intersects(spritegwiazda.getGlobalBounds()))
{
                stars.erase(stars.begin()+1);
}
and now "stars.push_back(spritegwiazda);" doesnt work because "spritegwiazda" is undefined so i dont can setPosition on the map.



23
Graphics / Re: Problem with stars
« on: August 05, 2014, 09:10:08 am »
I think that vector won't work good because player can collect the stars from different sides. Maybe i will have to make all star individually but there is no better way ?

24
Graphics / Problem with stars
« on: August 04, 2014, 09:34:01 pm »
Hello everyone!

Now I make my platform game and now i dont know how to make a stars which we can collect.
I know how check if we will collect(intersetcs) but I dont know how to use texture to make more stars, for example now i loading gwiazda.png to memory

sf::Texture gwiazda;
sf::Sprite spritegwiazda;

gwiazda.loadFromFile("gwiazda.png");
spritegwiazda.setTexture(gwiazda);
spritegwiazda.setPosition(730,1200);

and now i make one star but how to make 300 or more and if i catch the star how i can delete this from map ??
I hope you understand what i mean.

Sorry for my English.

Pages: 1 [2]