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

Pages: [1]
1
General / Re: KeyPressed Events Not Lining Up
« on: May 05, 2015, 07:55:28 pm »
Thank you all for the help. Now, though, it works if I use keys other than Left and Right for the top panel (I changed it to numpad 4 and numpad 6 and the pads travel the same speed) but it's still not working correctly for Left and Right. Does SFML maybe just handle these keys differently?

2
General / KeyPressed Events Not Lining Up
« on: May 05, 2015, 07:13:07 pm »
Being new to SFML, my friend recommended my first step being making a simple pong game. I've been trying to figure it out on my own using only the SFML tutorials from the Learn section of the website, but I've run into an issue and I can't find a solution to it in all my googling. I'm trying to make both paddles movable to make it a 2-player game, but for some reason the paddles move at different speeds. The Top paddle is bound to Left and Right to move 10 pixels in either direction, and the bottom paddles are bound to 'A' and 'D' and are set to move the same distance, however they move twice as far on a single key press. When both paddles are moving at the same time, they move the same speed. It's only when they're moving at different times that the bottom paddle moves much quicker. Anyone have any words of insight for a newbie on the matter? This is what I'm using for the movement.

(click to show/hide)

Pages: [1]
anything