0 Members and 2 Guests are viewing this topic.
Is it normal practice to initialize entity's at 0,0 and then move them where you want them?
If you call SetPosition(x, y), the top-left corner of your shape will move to (x, y).
line_start.x = x1;line_start.y = y1;line_end.x = 0 - ( Line_Length * cos( M_PI / 4 ) );line_end.y = 0 - ( Line_Length * sin( M_PI / 4 ) );Line = sf::Shape::Line ( 0, 0, line_end.x, line_end.y Line_Thickness, Bounds_Color, Border_Width, Border_Color );Line.SetPosition( line_start );