Okay, thankyou! and thankyou very much!
Type: Posts; User: Huw
Okay, thankyou! and thankyou very much!
it runs, but how would i get it to show me the value of 'o'? I've tried System.out.println(o); but it hasn't worked.
public class test{
public static void main(String[] args) {
}
I can't execute the code...I can get it to run, but I can't get it to print o?
I couldn't seem to get it to execute:/I'll try again..
If this is against the rules here, please remove this topic.
I'm trying to join a new forum specifically for java games, but to activate your account you need to answer a small trivia quiz. Being...
I think I may have got it to work!
I just tried calling repaint() in the method which changes the level, but I don't think any of my methods have 'if(level2==true)' are being run for some reason, so I think it might be a problem to do...
I think I've found that its the paint method which isn't being called again after level2 is true.
Here's all the code:
Maze:
package maze;
import javax.swing.JFrame;
I've added a main method to the class, but I still don't see how I'm going to get the class to 'restart' but with level2 true, I'm sorry if I seem really stupid with these questions.
If they all had main methods, how would the program know which to run, or am I just being stupid here?
I don't know alot about java since I've learnt on the Internet using different tutorials etc.
I will try the adding some print statements.
The main method is in a seperate class which then calls this class.
Okay, so I'm making a small game in which you have to go through a maze and get to the end to get to the next level. So far I have 2 levels and both work when set to be played. What I can't seem to...
Had a quick look at that and looks very helpful, I'll go through it properly afterschool, thankyou very much!
Sorry to sound really stupid, but how would I do all that?
Hi, so I'm planning to create a basic game with levels which are each painted from their own seperate level classes. I've made a class called 'Level1' which has the paint method which I want to use...