Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualMathew Bergen

Posted 03 February 2013 - 09:57 PM

Now I am super confused. I played around with the code and I set the ball to start at 0,0 and it started at the top left corner. I believe the problem is with the getting and setting the values with the vectors. 

 

Isn't that the desired effect?  Sprites in SFML should start with 0,0 equal to the top left corner of the screen, unless you override this behaviour, which you can do.


#1Mathew Bergen

Posted 03 February 2013 - 09:33 PM

Now I am super confused. I played around with the code and I set the ball to start at 0,0 and it started at the top left corner. I believe the problem is with the getting and setting the values with the vectors. 

 

Isn't that the desired effect?  Sprites in SFML should start with 0,0 equal to the top left corner of the screen, unless you override this behaviour, which you can do.

 

Yes it is, however I was confused about why the paddle was not acting right but the ball was. However I figured it out. My problem was with this dastardly line here

shape.y = Shape.GetPosition.x;

PARTNERS