Thread: transparent sprites

Results 1 to 8 of 8
  1. #1 transparent sprites 
    Member Market Banned Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    28
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    any 1 got a tut on how to make sprites transparent...i cant seem to find 1.
     

  2. #2  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    Simple, replace your method349 in Class30_Sub2_Sub1_Sub1.java with this one:
    Code:
       public void method349(int ai[], int ai1[], int i, int j, int k, int l, int i1, 
                int j1, int k1)
        {
            int l1 = -(l >> 2);
            l = -(l & 3);
            for(int i2 = -i1; i2 < 0; i2++)
            {
                for(int j2 = l1; j2 < 0; j2++)
                {
                    i = ai1[j++];
                    if(i != 0 && i != -1)
                    {
                        ai[k++] = i;
                    } else
                    {
                        k++;
                    }
                    i = ai1[j++];
                    if(i != 0 && i != -1)
                    {
                        ai[k++] = i;
                    } else
                    {
                        k++;
                    }
                    i = ai1[j++];
                    if(i != 0 && i != -1)
                    {
                        ai[k++] = i;
                    } else
                    {
                        k++;
                    }
                    i = ai1[j++];
                    if(i != 0 && i != -1)
                    {
                        ai[k++] = i;
                    } else
                    {
                        k++;
                    }
                }
    
                for(int k2 = l; k2 < 0; k2++)
                {
                    i = ai1[j++];
                    if(i != 0 && i != -1)
                    {
                        ai[k++] = i;
                    } else
                    {
                        k++;
                    }
                }
    
                k += j1;
                j += k1;
            }
    }
    You have to have the images transparent already for this code to work.
    Thank Yarnova for this:
    [Only registered and activated users can see links. ]


    [Only registered and activated users can see links. ]
     

  3. #3  
    Member Market Banned Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    28
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    stewart, u got msn?, if yh pm it me u r rly good n i cud do wid u on my msn list
     

  4. #4  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    I can't use Msn on my computer unfortunately. I'm using Linux =(


    [Only registered and activated users can see links. ]
     

  5. #5  
    F*ck the rest join the best, WoR

    sigex's Avatar
    Join Date
    Mar 2008
    Age
    31
    Posts
    2,088
    Thanks given
    122
    Thanks received
    146
    Rep Power
    690
    Quote Originally Posted by Stewart View Post
    I can't use Msn on my computer unfortunately. I'm using Linux =(
    owned why you using linux dude wtf? windows 7 ftw?


    The wor has begun.

     

  6. #6  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    Quote Originally Posted by sigex View Post
    owned why you using linux dude wtf? windows 7 ftw?

    I had to fight with my brother to put Linux since my installation of XP was scrwed. But I'm dual Booting Linux and Xp now. So I should be getting stuffs back to normal now.


    [Only registered and activated users can see links. ]
     

  7. #7  
    Registered Member
    AlexMason's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    1,199
    Thanks given
    17
    Thanks received
    27
    Rep Power
    98
    Stewart aint smart thats yarnovas code....

     

  8. #8  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    Quote Originally Posted by AlexMason View Post
    Stewart aint smart thats yarnovas code....
    I told him that code was from Yarnova. I even linked him to it. So please don't call me an Idiot or say I'm not smart if you don't bother to read posts.
    Quote Originally Posted by Stewart View Post
    }[/code]You have to have the images transparent already for this code to work.
    Thank Yarnova for this:
    [Only registered and activated users can see links. ]
    Did you even bother to read that at the bottom of my post? And if you think I'm getting rep from people for this. Think again...


    [Only registered and activated users can see links. ]
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •