1
Graphics / Re: Cant get Sprite position relative to view(sf::vector2f to 2i problems?)
« on: September 23, 2013, 12:07:56 pm »
Thanks for the tip about it not being about the view but was just trying it to test it it worked, currently I have:
Which works fine but like I said only at 0,0 and then gets offset.
EDIT: Fixed, it was a problem with the movement of the sprite after it's position was set. Thanks for your tips.
Quote
for(int i = 0; i < bomb.size(); i++)
{
sf::Vector2f playerPos = playSprite.getPosition();
bomb->getBullet().setPosition(playerPos.x, playerPos.y);
}
Which works fine but like I said only at 0,0 and then gets offset.
EDIT: Fixed, it was a problem with the movement of the sprite after it's position was set. Thanks for your tips.