Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Meldron

Pages: [1]
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;
         
      }

 :D

Pages: [1]