Search:

Type: Posts; User: thatguywhoprograms

Search: Search took 0.19 seconds.

  1. Replies
    5
    Views
    1,503

    Re: How would I approach this?

    I did what you recommended and it seems good but I'm having a slight problem now:



    try {
    new GameOver(ending1);

    if (gameA == 2 && gameB == 0) {
    ...
  2. Replies
    5
    Views
    1,503

    Re: How would I approach this?

    I'm a real novice when it comes to this.... I want to use Thread.wait() but how would I implement it?
  3. Replies
    60
    Views
    10,020

    Re: Tower Defense on Java

    I'd say do the second choice, but then from within that super class you make multiple classes in which you detail what each of the objects are, if your a beginner, it might take a while to get to...
  4. Replies
    5
    Views
    1,503

    How would I approach this?

    I'm making a game and it has a few endings and I have it so that when the endings are reached it is a game over. The thing is how would one approach in somehow delaying the game over by a few seconds...
  5. Re: Having trouble over here, sorry if the answer is obvious.....

    I'm kinda stuck to using exceptions and I guess it won't make sense unless I put up a full code of it.


    if (IsOverButtonA && ClickedDown) {
    gameA += 1;
    }
    ...
  6. Re: Having trouble over here, sorry if the answer is obvious.....

    Here I changed it up, I want the exception to work but it seems with the if statement and the booleans within it make it conditional in which I thought making a "new" exception class would make it...
  7. Replies
    25
    Views
    3,685

    Re: Error in IF-Else Code

    Ah a but a simple solution, you cannot have two if statements right next to each other, what you have to do for the second if is add a else behind it like:

    else if (String) usrInpt = "F" {...
  8. Having trouble over here, sorry if the answer is obvious.....

    (I want the exception to actually run but it won't, the exception class is no worry it's fine, the exception is if gameA is over 2 or gameB is over 0 it should say what's written in the exception,...
Results 1 to 8 of 8