1
Graphics / [SFML1.6] Fading An Image In
« on: September 04, 2010, 06:23:25 pm »
I found out what the problem was.
I was trying to fade the image in inside a class and in this classes constructor, i was doing something like this:
(Not Actual Code)
i changed it to something like this:
(Not Actual Code)
other_texture is declared in the .h file
i dont why it worked but it did, can anyone explain?
I was trying to fade the image in inside a class and in this classes constructor, i was doing something like this:
Code: [Select]
SomeClass(Image texture)
{
TheSprite.SetImage(texture);
}
(Not Actual Code)
i changed it to something like this:
Code: [Select]
SomeClass(Image texture)
{
other_texture = texture;
TheSprite.SetImage(other_texture);
}
(Not Actual Code)
other_texture is declared in the .h file
i dont why it worked but it did, can anyone explain?