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

Pages: [1]
1
Graphics / Re: Sprites not positioning the way I established
« on: December 22, 2017, 12:40:02 am »
float x = sizeEdge + ((currentSquare - 1) * (sizeRectangle + sizeMargin));
float y = sizeEdge + (r * (sizeRectangle + sizeMargin));

sprites[i++].setPosition(Vector2f(x,y));

currentSquare += 2;
 

Try this and tell me if it is working as you wish, I can't really test it so I am not sure if it is right.

Pages: [1]
anything