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 - Lo-X

Pages: 1 ... 27 28 [29]
421
SFML website / Sometimes you have to logon twice..
« on: June 15, 2011, 01:13:02 am »
I've this problem when I open french and english forum in the same time.

422
System / timeGetTime() replacement?
« on: March 29, 2011, 06:03:44 pm »
Quote from: "devlin"

There's also the window function to get time since last frame?

float sf::Window::GetFrameTime()


I think I work on a sf::Clock too, tell me if I'm wrong.

423
Graphics / Help on Asteroids Game!
« on: March 22, 2011, 08:20:44 pm »
Quote from: "Ultranor"
Thanks for your help! I managed to get the spaceship up and running but now im stuck on making it shoot bullets. I have been coding and reading for hours and I still can't any decent tutotial for creating and shooting bullets. Any pro tips or any tutorials on doing that?


I don't think so. A bullet is just a sprite. If you can shot a lot of bullet, just do a list or a tab or a container to add bullet in it. When the player press the fire key, add a bullet in it (initialized with position, angle and maybe speed) et draw your bullets.

Don't forget to delete your bullets if you're making dynamic allocation !

424
General / Player pointing at mouse?
« on: March 22, 2011, 08:16:55 pm »
I think the return is in radian, try to multiplicate by 180 and divide by PI

425
Graphics / Help on Asteroids Game!
« on: March 20, 2011, 09:08:18 pm »
You can save the angle of your spaceship (initializing it in the direction you want : up, left, down, right, ...) and use some maths formulas.

You also need :
Sprite::SetRotation()
Sprite::Rotate (perhaps)

To know how to calculate a position having an angle and another position and to calculate an angle having 2 positions.

Pages: 1 ... 27 28 [29]
anything