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

Pages: [1]
1
General / Restart Game
« on: June 11, 2009, 01:51:28 pm »
Ok sorry, you are right!
I got the code from the SFML doc.

http://codeviewer.org/view/code:888

2
General / Restart Game
« on: June 09, 2009, 12:27:44 am »
probably no one could or want to help me. this is a little bit pity, because this isn´t a very big problem and I need just a little help :)

3
General / Restart Game
« on: June 04, 2009, 02:55:04 pm »
Hello,

after a long time of doing a lot of stuff except programing, I´m back :)
Now I have a new computer and have everything set up new. I found in ne SFML dev-pack the source for an little pong game (quite funny) and wanted to add a few things, like a Gameloop. Because it´s really annoying to resart the whole game for a new round.

My problem is that I don´t know how to make it.
When now the game is finished, the source look like this

Code: [Select]
if (Ball.GetPosition().x < 0.f)
{
IsPlaying = false;
End.SetText("You lost !\n(press escape to exit)");
}


Ok, that IsPlaying = false; is the problem. I tried something like this:


Code: [Select]
Ball.SetPosition(400.f, 300.f);
sf::Sleep(0.5f);
Ball.Move(std::cos(BallAngle) * Factor, std::sin(BallAngle) * Factor);


But this doesn´t work.
I don´t no where the problem is - when the ball reachs one side of the screen, I set him into the middle and he moves again till he reaches one side of the screen.

So, does anybody know how solve this problem?

   
thanks in advance

4
Audio / Error when I start the first Audio-Tutorial
« on: November 25, 2008, 05:41:56 pm »
Ok, thank you  :)
First I just used the -d.libs, because of my debug mode.
But after I had started my program, the message came, that I´ve to put the sfml-system.lib, sfml-audio.lib, etc. in my project folder.
Now I´m confused^^

5
Audio / Error when I start the first Audio-Tutorial
« on: November 24, 2008, 09:55:01 pm »
Thank you all for your tips!
Now the program is able to start, but than happening something total strange. The console shows me some unreadable sentences...


I would like to post the compiler error, but it is in german  :roll:

6
Audio / Error when I start the first Audio-Tutorial
« on: November 23, 2008, 11:22:54 pm »
Hi,

the topictitle explains my problem  :)

I did the first tutorial about Soundeffects (Playing a sound). I linked next to the sfml-system, sfm-window and sfml-graphics libs, also the sfml-audio lib (I know, I don´t need all of them for this tutorial, but I tried to combine it with some graphics).
But when I start my program, I get the error message, that the openal32.dll is missing... but when I put the dll in my project folder, the next dll is missing.
What should I do? I didn´t read, that I´ve , for example, link another library.

Thanks for your answers  :D

7
Graphics / Delete Sprites and free surfaces
« on: November 21, 2008, 09:06:59 pm »
Hi everybody,

as you can see in the topic title I want to know some things.
First, when I draw a sprite with Window.Draw(Sprite) on my screen, is there also the possibility to delete this sprite (while the program ist running)?

And the other question is, when I used the SDL (I think as many SFML user did) I had to call SDL_FreeSurface(Sprite) at the end of my programm. afaik I don´t need such an function when I use the SFML. Am I right?

Thanks for your answers.

Pages: [1]
anything