Results 1 to 7 of 7
  1. #1
    Vorpike is offline Member
    Join Date
    Jun 2013
    Posts
    6
    Rep Power
    0

    Question Help me with this bug (simple, code included)?

    I'm trying to make a game where you have to click get food from a vending machine, you have a budget and you need to get foods to match a quota (of saltiness...etc.) For some reason, when I draw the foods, I get a random image on the top left (candy on top of something else, and when I delete candy.png, another image replaces it). I've went over my code multiple and can't see how such a simple code could have a bug like that. Could you guys look over it and see what's wrong (ignore JFrame).
    Last edited by Vorpike; 06-17-2013 at 06:05 AM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Help me with this bug (simple, code included)?

    1. You didn't bother to return to the first thread you started. Why should we expect any better behavior this time round?
    2. The chances of anyone going through code that zips to more than half an MB are remote. Start small, add code and compile/run each time you add a method or feature, and you may be able to find the problem yourself. Even if you can't, you'll have something small enough for members here to tackle -- a SSCCE <-search the net if you don't know what that stands for.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Vorpike is offline Member
    Join Date
    Jun 2013
    Posts
    6
    Rep Power
    0

    Default Re: Help me with this bug (simple, code included)?

    1. I found out the solution and tried to delete it, and why should it matter?
    2. Most of it comes the pictures that are needed.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Help me with this bug (simple, code included)?

    Quote Originally Posted by Vorpike View Post
    why should it matter?
    How To Ask Questions The Smart Way
    https://www.coderanch.com/how-to/java/SayThanks

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    Vorpike is offline Member
    Join Date
    Jun 2013
    Posts
    6
    Rep Power
    0

    Default Re: Help me with this bug (simple, code included)?

    tl;dr
    Yeah, I really should have read over more because this is really simple, I'm was desperate/short on time, got it now, how do I delete this?
    Thanks...for literally nothing, except for maybe the heads up on condensing the upload...wouldn't want to be reading that myself...but the thing is, I have no idea where I went wrong so it had to be all of it...plus pictures.
    I made an account just for one question, because I there were so many java forums I didn't know which ones were abandoned, so I "spammed" a few, it would've been more of a hassle to go back to do things (on multiple sites) as opposed to seeing the answer in my email.

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Help me with this bug (simple, code included)?

    Quote Originally Posted by Vorpike View Post
    tl;dr
    Way to go. That's going to get you a lot of help on a forum. Not.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Help me with this bug (simple, code included)?

    Member Vorpike is banned for 3 months for violation of forum rules. One post by the member has been removed from public view.

    db

    THREAD CLOSED
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 1
    Last Post: 08-03-2011, 02:30 PM
  2. JDBC code not included into JAR file??
    By friday in forum Advanced Java
    Replies: 1
    Last Post: 12-17-2010, 08:13 PM
  3. Simple code. Could you help pls..?
    By Iliyas in forum New To Java
    Replies: 8
    Last Post: 12-26-2008, 04:17 AM
  4. Please help me this is simple bit of code
    By BlitzAcez in forum New To Java
    Replies: 4
    Last Post: 11-27-2008, 06:52 AM
  5. simple code
    By elizabeth in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 07:49 PM

Posting Permissions

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