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 - G.

Pages: 1 ... 56 57 [58] 59 60 ... 63
856
Window / Re: Key combinations in SFML
« on: January 11, 2013, 04:01:53 pm »
What's wrong with checking with sf::Keyboard if ctrl is pressed when processing the MouseButtonPressed event? ??? (or/and the opposite, check with sf::Mouse inside the keyPressed event)
Only one action will be triggered, unless you release mouse click and click again of course.

Or do you want it to happen only when both events are triggered at the same frame? (highly unlikely to happen...)

857
Window / Re: Key combinations in SFML
« on: January 11, 2013, 03:32:13 pm »
Use the sf::Keyboard class to know if any given key is pressed at any given moment.
If you're not using 2.0 yet (you should ;) ), do it with the sf::Input class.

858
Graphics / Re: Problems with setscalex
« on: January 02, 2013, 09:05:04 pm »
Not hard, but it can be tedious.

859
Graphics / Re: Draw line
« on: December 31, 2012, 04:28:47 pm »
Well, maybe people are getting tired of answering the same thing over and over. The answer can be found with an easy search, so it's basically "do the search for me".

860
Graphics / Re: Custom view system, slow as hell
« on: December 31, 2012, 02:07:24 pm »
Something like sf::View::setViewport? :p
If you need a better understanding of sf::View, there's a "tutorial" on the wiki. Sorry, I don't have enough time to explain more right now, so I hope this will help you.

861
Graphics / Re: Custom view system, slow as hell
« on: December 31, 2012, 02:20:31 am »
 ??? What's wrong with sf::View?

862
General / Re: Game Samples
« on: December 26, 2012, 08:59:15 pm »
Pong. :D
Holyspirit, a french hack'n slash.

Probably a lot more if you google sfml "open source" game.

863
Graphics / Re: WHAT DOES GetFrameTime() DO?
« on: December 25, 2012, 11:00:00 pm »
Nop. You'll have to do it yourself. See the end of the time tutorial or search the forums (it's a recurrent topic) for examples.

864
System / Re: SFML in the future.
« on: December 21, 2012, 01:01:17 pm »
He's talking about singletons and you're talking about  static vars?  ???

865
General / Re: AlexxanderX problems...
« on: December 18, 2012, 10:09:27 pm »
You don't move the map, you move the camera (the view).
Check the wiki for more info on sf::View.

866
Graphics / Re: [SFML 2.0] Wallpaper
« on: December 16, 2012, 02:21:35 pm »
SFML doesn't do that.

867
Network / Re: SFML 2.0 Network Examples?
« on: December 14, 2012, 11:07:10 pm »
Check the wiki or the github repository. ;)
(and possibly the forum)

868
General / Re: HTML table rendering to a window
« on: December 11, 2012, 09:05:05 pm »
Maybe Awesomium or Berkelium. ;)

869
Window / Re: Can't make Joystick work
« on: December 10, 2012, 09:09:09 am »
What I want to do is make use of the joystick function. I have Code::Blocks and SFML 1.6 already working and well configured, but maybe I'm missing something (I have followed THIS tutorial).
Good, but why didn't you also read the other tutorials then? ;)
Read [SFML 1.6] Handling events, especially the "Getting real-time inputs" paragraph.

And yes you need a window to get inputs, do you have one?

870
Graphics / Re: Question about bouncing
« on: December 07, 2012, 12:58:02 am »
Of course it's wrong, although you don't explain what's wrong.
You want to invert ballx if your sprite.x reaches screen_w - 20: so you want to react if ballx is GREATER OR EQUAL than screen_w-20. ;)

(also, use the code tag, not the quote ^^)

Pages: 1 ... 56 57 [58] 59 60 ... 63