Search:

Type: Posts; User: ForeverHeat

Page 1 of 2 1 2

Search: Search took 0.16 seconds.

  1. Replies
    3
    Views
    231

    Re: What is a Java framework?

    I mean how do frameworks work in general? How can identify the framework a project is based on and then use it to create me own project?
  2. Replies
    3
    Views
    231

    What is a Java framework?

    My teacher has given me an assignment and he has said to follow a specific framework based on a case study. If we use a different framework it is an automatic fail. How do I identify this framework...
  3. Replies
    6
    Views
    116

    Re: ImageIO Unknown Source?

    Again, I was watching tutorial and that was exactly how he did it. He didn't give too much of an explanation as he went on to explain another point. I am sorry, I am a beginner so I do not know too...
  4. Replies
    6
    Views
    116

    Re: ImageIO Unknown Source?

    Well I have been following a online tutorial and it was written like that. If I remove it, then errors appear elsewhere saying the variable hasn't been initialized?
  5. Replies
    6
    Views
    116

    Re: ImageIO Unknown Source?

    Yep, here it is.


    Exception in thread "main" java.lang.IllegalArgumentException: input == null!
    at javax.imageio.ImageIO.read(Unknown Source)
    at gfx.SpriteSheet.<init>(SpriteSheet.java:19)...
  6. Replies
    6
    Views
    116

    ImageIO Unknown Source?

    What could be the issue here? I am having errors but not sure why.

    My two classes. I have pointed out the lines that are causing the errors. -


    import gfx.SpriteSheet;

    import...
  7. Replies
    5
    Views
    279

    Re: Multiplayer Networked Game

    What kind of minimum requirements?
  8. Replies
    5
    Views
    279

    Re: Multiplayer Networked Game

    Okay, thank you for your advice. Can I just say though I don't really need it to be a fancy multiplayer game, just so that the same game is playable from two windows. Essentially two clients just...
  9. Replies
    6
    Views
    327

    Re: Turn taking?

    Hmm...that is not what I wanted to hear. I need to finish this assignment by tomorrow *facepalm*
  10. Replies
    5
    Views
    279

    Multiplayer Networked Game

    I already have a game, but I need to create a Socket(client-server) so that the game can be played by two players on a localhost. Any ideas how I can do this, or even where I can find a tutorial?
  11. Replies
    6
    Views
    327

    Re: Turn taking?

    Thanks a lot! It works now.

    I will do that now, hopefully it cleans things up a bit. While you are here though, can I ask about Sockets? I need to create a Socket with a client and server (I hope...
  12. Replies
    6
    Views
    327

    Turn taking?

    I have a two player snakes and ladders game, but at the moment any player can roll the dice at any time. How can I make it so they have to wait their turn before they can roll the dice?

    Btw, I...
  13. Replies
    7
    Views
    273

    Re: Background Music Error

    I have tried a couple different wav files, one that was converted to wav from mp3 and another wav file I download. When you say there may be a problem with the way I am using the audio stream, what...
  14. Replies
    7
    Views
    273

    Re: Background Music Error

    Okay I have done as you said, and this is what I received in the console after the error.

    java.io.IOException: could not create AudioData object
    at sun.audio.AudioStream.getData(Unknown Source)...
  15. Replies
    7
    Views
    273

    Re: Background Music Error

    Its not that it doesn't run, just that the try catch catches an error and the error pops up. If I removed the try catch, pressing the button does nothing at all.
  16. Replies
    7
    Views
    273

    Background Music Error

    I keep receiving a error every time I press the "Toggle Music" button, which should start to play the background music. I have tried a couple of different tracks but they are both having the same...
  17. Replies
    2
    Views
    237

    Not sure how I would do this...

    I am having some trouble with this code.

    1. I want the player score to add the value of the dice roll, but for it to then go back to displaying the two players score, until the user presses roll...
  18. Replies
    7
    Views
    216

    Re: Button isn't working as it should?

    I will have a read through the tutorial. Thanks.
  19. Replies
    7
    Views
    216

    Re: Button isn't working as it should?

    Oh sorry about that I missed it. My bad. My question was is this how I would call the method in actionPerformed?

    package game;
    import javax.swing.*;

    import java.awt.*;
    import...
  20. Replies
    7
    Views
    216

    Re: Button isn't working as it should?

    double
  21. Replies
    7
    Views
    216

    Button isn't working as it should?

    I am trying to get the player score to add one every time the player button is pressed. So every time the Player One button is pressed, add one to player1score. Same with player two. It isn't being...
  22. Replies
    5
    Views
    222

    Re: Can't see anything, not sure why?

    Nah, I removed it now. That, and the fact that I added each panel twice was probably the problem. The layout is now as I expected.

    EDIT

    I see what you mean now, I copy and pasted the earlier...
  23. Replies
    5
    Views
    222

    Re: Can't see anything, not sure why?

    Thanks for catching that. I have amended the code to -

    package game;
    import javax.swing.*;
    import java.awt.*;
    import java.util.Scanner;
    import java.awt.event.*;
  24. Replies
    5
    Views
    222

    Can't see anything, not sure why?

    package game;
    import javax.swing.*;
    import java.awt.*;
    import java.util.Scanner;
    import java.awt.event.*;



    public class JavaGame extends JFrame {
  25. Replies
    6
    Views
    365

    Re: Changing A Order?

    Oh yep sorry its a GUI.

    --- Update ---



    Thats what I had in mind I just don't have much experience so I wasn't really sure how to go about it.
Results 1 to 25 of 27
Page 1 of 2 1 2