1
Graphics / Sprite.SetImage problem[solved]
« on: June 17, 2009, 04:02:37 am »Code: [Select]
if (rotation == 0)
{
return T1;
++rotation;
}
else if (rotation == 1)
{
return T2;
++rotation;
}
else if (rotation == 2)
{
return T3;
++rotation;
}
else
{
return ImageT;
rotation = 0;
}
you should try:
Code: [Select]
if (rotation == 0)
{
++rotation;
return T1;
}
else if (rotation == 1)
{
++rotation;
return T2;
}
else if (rotation == 2)
{
++rotation;
return T3;
}
else
{
rotation = 0;
return ImageT;
}
