Hi,
i found maybe bug,
this is not working:
s.setPosition( (p.hero_position_x+50-(*window).getSize().x/2) , p.hero_position_y-70+(*window).getSize().y/2 );
this is working:
int dx=(p.hero_position_x+50-(*window).getSize().x/2);
s.setPosition( dx , p.hero_position_y-70+(*window).getSize().y/2 );
When dx is below 0, in first case without temporary variable integer the drawing is not working, but in second case with temporary int the drawing draws. I realized this is weird so I am here to report this issue.
Thanks for answers and sory if I am doing something wrong