Thread: Load item inventory icons from sprites!

Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30
  1. #21  
    Registered Member
    Warlock 999's Avatar
    Join Date
    Jul 2008
    Age
    28
    Posts
    1,407
    Thanks given
    7
    Thanks received
    29
    Discord
    View profile
    Rep Power
    927
    Quote Originally Posted by Blood Isle View Post
    you dont need to do anything like:

    Code:
        public Sprite(String customSpriteLocation) {
            try
            {
            Image image = Toolkit.getDefaultToolkit().getImage(""+customSpriteLocation+".png");
            System.out.println(customSpriteLocation);
                anInt1444 = myWidth;
                anInt1445 = myHeight;
                anInt1442 = 0;
                anInt1443 = 0;
                myPixels = new int[myWidth * myHeight];
                PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, myWidth, myHeight, myPixels, 0, myWidth);
                pixelgrabber.grabPixels();
            image = null;
            }
            catch(Exception _ex)
            {
                System.out.println(_ex);
            }
        }
    just make sure you do this part of the tut

    Code:
    ItemDef itemDef = ItemDef.forID(j9);
                                        
                                        if (itemDef.customSpriteLocation != null)
                                        {
                                            class30_sub2_sub1_sub1_2 = new Sprite(itemDef.customSpriteLocation);
                                        }
    I did, But i got a missing constructor error
    If anyone needs help with java questions or errors I will try and help with what I can/know
    my discord is Perkaholic feel free to add me with questions or to chat!

    "There is always one more thing you can do to increase your odds of success." -Hal Moore
    Reply With Quote  
     

  2. #22  
    Banned
    Join Date
    Jun 2009
    Posts
    31
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Wdf do you call this shit?
    Reply With Quote  
     

  3. #23  
    Apocalyptism
    Harry's Avatar
    Join Date
    Apr 2007
    Posts
    3,783
    Thanks given
    594
    Thanks received
    1,833
    Rep Power
    2934
    added none-renamed
    ~ Harry
    Please bear this in mind when hearing the word 'soon' from a software programmer.

    As coding software generally takes thousands of years, software programmers have developed a natural adaptation to this in the form of an altered perception of the flow of time.

    Due to this, the word 'soon' when uttered by a programmer should be taken to mean 'a very, very long time from now' in the terminology used by common human specimens who have not developed such an adaptation.
    knowledge can be taught, but passion cannot.
    It's better to create something that others criticise than to create nothing and criticise others.
    Reply With Quote  
     

  4. #24  
    Registered Member
    Join Date
    Sep 2007
    Posts
    273
    Thanks given
    0
    Thanks received
    7
    Rep Power
    9
    Nice work But your going down a dark and scary road
    Reply With Quote  
     

  5. #25  
    Apocalyptism
    Harry's Avatar
    Join Date
    Apr 2007
    Posts
    3,783
    Thanks given
    594
    Thanks received
    1,833
    Rep Power
    2934
    Quote Originally Posted by mm_naruto View Post
    Nice work But your going down a dark and scary road
    howw come?
    ~ Harry
    Please bear this in mind when hearing the word 'soon' from a software programmer.

    As coding software generally takes thousands of years, software programmers have developed a natural adaptation to this in the form of an altered perception of the flow of time.

    Due to this, the word 'soon' when uttered by a programmer should be taken to mean 'a very, very long time from now' in the terminology used by common human specimens who have not developed such an adaptation.
    knowledge can be taught, but passion cannot.
    It's better to create something that others criticise than to create nothing and criticise others.
    Reply With Quote  
     

  6. #26  
    Registered Member
    Lennard's Avatar
    Join Date
    Mar 2010
    Posts
    926
    Thanks given
    0
    Thanks received
    234
    Rep Power
    274
    Nice will be usefull.
    Reply With Quote  
     

  7. #27  
    Registered Member Im mad 1337's Avatar
    Join Date
    Aug 2009
    Age
    27
    Posts
    192
    Thanks given
    7
    Thanks received
    25
    Rep Power
    4
    Quote Originally Posted by ruyfypks View Post
    Nice will be usefull.
    I cannot believe you just did that ...
    OT: When you drop the item, is it just an image on the ground?
    Reply With Quote  
     

  8. #28  
    The One And Only

    KaiserCo's Avatar
    Join Date
    Dec 2010
    Posts
    2,420
    Thanks given
    509
    Thanks received
    445
    Rep Power
    209
    oh god... im not gona like the customs that come out of this
    Reply With Quote  
     

  9. #29  
    SoulSplit Market Banned Market Banned

    Technotik's Avatar
    Join Date
    Nov 2011
    Posts
    1,578
    Thanks given
    585
    Thanks received
    644
    Discord
    View profile
    Rep Power
    572
    Sorry for gravedig, but this is really needed
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. #30  
    Registered Member xsniperx's Avatar
    Join Date
    Oct 2012
    Age
    25
    Posts
    338
    Thanks given
    1
    Thanks received
    15
    Rep Power
    12
    goodjob harry.
    Live life while you can.
    Reply With Quote  
     

Page 3 of 3 FirstFirst 123

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
  •