Search:

Type: Posts; User: DusteroftheCentury

Page 1 of 2 1 2

Search: Search took 0.31 seconds.

  1. Replies
    6
    Views
    2,673

    Re: Where to start to make a 2d game?

    Thanks for all the help :)

    I am working on a text based game like you said.

    I have a few questions though:

    How do I set a boolean to true if something happens but have the default be false?...
  2. Replies
    6
    Views
    2,673

    Re: Where to start to make a 2d game?

    Thanks so much! :)That is SO helpful. Especially the checklist. I know most of the basics, I will learn the things you mentioned I am not familiar with. As for Swing, I am already pretty sufficient...
  3. Replies
    6
    Views
    2,673

    Where to start to make a 2d game?

    Hello Guys,

    I want to develop a simple 2d action/exploration game in Java. I am thinking the theme will be mining. Where to start? What API should I learn? How much much work must really go into...
  4. [SOLVED] Re: A question about updates. (Program dosent update until refreshed)

    Thanks, works perfectly now :)

    -Duster
  5. [SOLVED] Re: A question about updates. (Program dosent update until refreshed)

    Link not working for me. (4o4)

    Thanks for the helping.

    -Duster
  6. [SOLVED] A question about updates. (Program dosent update until refreshed)

    Hey guys I have a simple question. Do I have to manually tell a panel to update or something? And if so how?

    Right now using this code


    import javax.swing.*;
    import java.awt.*;
    import...
  7. [SOLVED] Re: (Simple) How to use an if statement to respond to random integers

    Thanks Norm that worked like a charm! ;)

    Also thanks for the definition, I hat not being able to use proper terms.

    Thanks so much for the simple explanation!

    -Duster
  8. [SOLVED] Re: (Simple) How to use an if statement to respond to random integers

    ^this

    Here is the peice of code Im talking about:


    public void actionPerformed(ActionEvent e)
    {
    if (e.getSource() == button1);
    {
    int low = 1;
  9. [SOLVED] Re: (Simple) How to use an if statement to respond to random integers

    Thanks guys.

    Tjstretches link did it for me. Thanks for helping :)

    Also for a related issue,(Part of same code) how do I change the text of a JLabel when I am in a different block of code? It...
  10. [SOLVED] (Simple) How to use an if statement to respond to random integers

    Hello,

    I have a simple question. How do I use an if statement to check and respond to a randomly generated integer? For instance if the number is 4, it would print "Chicken"
    but for 5 it would...
  11. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Thank you so much. It works!
  12. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    What line do I remove? Sorry Im just not very familiar with the many technical terms.

    Thank you so much,

    -Duster
  13. Replies
    14
    Views
    1,502

    Re: How to get getPixelColor to Loop

    Wow what is a robot in Java? :eek:
  14. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    It prints this:

    ...
  15. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    What lines of code would you reccomend checking? And how? I understand your blog, but I do not see how that would apply here, because I dont really use numbers and integers and such, which if I did...
  16. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Could you explain what null means? And what kind of printlns? I know they can be used to catch exceptions but how?

    Thanks for the help,

    -Duster
  17. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Thanks, I checked the link and touched up on ActionListeners. I wrote this code,



    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JFrame;

    public class...
  18. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    I really dont want to just use the code given, I want to figure it out with help.

    Here is my new code:


    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import...
  19. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    I appreciate this but I understand that spoon feeding is bad. I only needed a few lines of that and that is what I will use.

    Thank you.

    @copeg I understand, I accidentally spoon fed someone...
  20. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    I just want it to add a pic to the panel by using ImageIcon. This is the image: 981

    How would I listen to the actions? I know I can do "textbox1.getText();" to retrieve the text, but what code do...
  21. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Here is my code so far:

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;


    public class MainClass extends JFrame implements ActionListener
    {
    public static void...
  22. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Didnt see your post there. I shall try.
  23. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    980This image might help better explain what I want:
  24. [SOLVED] Is there a way to make things happen if a certain text is entered in a TextField?

    Hey,

    First of all please excuse my lack of technical terms.

    I want to have a JTextField be able to accept commands, and have the commands change pictures, display text etc.

    Is their a...
  25. Replies
    10
    Views
    1,255

    Re: How Do i add pictures to a jframe?

    Ok, I understand.

    Ill go read the rules.

    Where exactly are they located?
Results 1 to 25 of 43
Page 1 of 2 1 2