1
Graphics / Re: Problem with displaying multiple sprites (1.6)
« on: February 15, 2013, 04:08:03 pm »
thanks for the quick reply, i will be switching to sfml 2.
the problem is at the constructor:
if i manually call "Player1.SetImage(Image);", and set Image to public, it works. "Player1.Sprite.SetImage(Image);" doesnt work, could someone explain this to me?
EDIT: God I am dumb, i drew the class instead of the Sprite <.< sorry for wasting your time
the problem is at the constructor:
Player()
{
Sprite.SetImage(Image);
}
{
Sprite.SetImage(Image);
}
if i manually call "Player1.SetImage(Image);", and set Image to public, it works. "Player1.Sprite.SetImage(Image);" doesnt work, could someone explain this to me?
EDIT: God I am dumb, i drew the class instead of the Sprite <.< sorry for wasting your time