Search:

Type: Posts; User: Dessy

Search: Search took 0.24 seconds.

  1. Replies
    19
    Views
    552

    Re: String Help Needed

    I honestly don't even have any idea what that means.
    ...I have a lot to learn. ^^'
  2. Replies
    19
    Views
    552

    Re: String Help Needed

    Well app is an integer that can have absolutely any value. At first I set karel as 0, but as an afterthought, I wrote it as a default instead, which makes more sense in my opinion. If I added four...
  3. Replies
    19
    Views
    552

    Re: String Help Needed

    /**
    * Defined direction for east (right).
    */
    public static final int EAST = 0;
    /**
    * Defined direction for north (up).
    */
    public static final int NORTH = 1;
    ...
  4. Replies
    19
    Views
    552

    Re: String Help Needed

    What I have now is a really inefficient method of adding new sprites to be accessed by constructor methods.
    Which image is displayed at any given point in time is dictated by two integers/arguments...
  5. Replies
    19
    Views
    552

    Re: String Help Needed

    Not sure, actually. But I had something sort of similar to that. I have not actually found a way to use it, as I said. >:
  6. Replies
    19
    Views
    552

    Re: String Help Needed

    This is true, but the values represent sets of icons. The specific icons are defined by another integer in the constructor that also aligns with an array. Those are directions. The one I just posted...
  7. Replies
    19
    Views
    552

    Re: String Help Needed

    I think I was using it before to make a
    private static String stringname = "/icons/" + appearance[app].toString() + "w.gif"; or something like that. int app is an argument used in the constructor...
  8. Replies
    19
    Views
    552

    Re: String Help Needed

    public static final int karel = 0;

    public static final int bm = 1;

    static final int[] appearance = { karel,
    bm
    };

    It was relevant in the original...
  9. Replies
    19
    Views
    552

    Re: String Help Needed

    Well the way I have the program written (It works for sure now :3), I have to change the hunk of program I just showed to include all my new icons, as well as add a bunch more strings. I was hoping I...
  10. Replies
    19
    Views
    552

    String Help Needed

    I'm extremely new to Java. I'm in a very basic Java programming class that's really boring and tedious, and I highly doubt we're going to learn anything like this all year, but what I was wondering...
Results 1 to 10 of 10