Annotations, put them on the line above the method:
@Override
public void ...
Annotations, put them on the line above the method:
@Override
public void ...
You have no ‘white’ declaration on your uiskin.json.
i put the @override and now i get this
http://pastebin.java-gaming.org/2e408436459
whats the white declaration?
heres the uiskin.json
http://pastebin.java-gaming.org/e4083546950
i’ve seen a few of his videos their not bad i got the code for the splash screen from his vids
its kinda usefull
but he dosen’t actually finish the game he ends it with a lame spaceship stuck in the middle of the screen that shoots where you click
if i manage to get a good grip on libgdx i’ll be sure to make a tutorial, a noob friendly one too
Try remove this
com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable: {
dialogDim: { name: white, color: { r: 0, g: 0, b: 0, a: 0.45 } }
},
There’s around 5 hours of video tutorials here spread out over 10 videos guiding the viewer through a single project:
Seems awesome.
heres the code its basicly the same thing as my last link
http://pastebin.java-gaming.org/ed22e146058
and heres the error
http://pastebin.java-gaming.org/d22e4206853
What error? These are simple warnings (even less than warnings).
You might want to learn simple java first if you think those are errors… :o
Nothing wrong on code, although you forget the @Override on listeners’ methods.
lol my bad its cause every time i see something under the problems tab i always just think to my self its an error
i’ll be more specific next time
so what am i missing cause when i do the quick fix it just tell me to get rid of those lines an with or without them i still dont get anything on screen
im just running that class by itself
heres what shows up on the console tab
http://pastebin.java-gaming.org/22e40386354
where exactly do i put it ?
Annotations, put them on the line above the method:
@Override
public void ...
You have no ‘white’ declaration on your uiskin.json.
i put the @override and now i get this
http://pastebin.java-gaming.org/2e408436459
whats the white declaration?
heres the uiskin.json
http://pastebin.java-gaming.org/e4083546950
i’ve seen a few of his videos their not bad i got the code for the splash screen from his vids
its kinda usefull
but he dosen’t actually finish the game he ends it with a lame spaceship stuck in the middle of the screen that shoots where you click
if i manage to get a good grip on libgdx i’ll be sure to make a tutorial, a noob friendly one too
Try remove this
com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable: {
dialogDim: { name: white, color: { r: 0, g: 0, b: 0, a: 0.45 } }
},
thanks for the help guys i got the menu working but i hit a little problem here
so i can manage to load the splash screen after the main like this, it works no problem
public void create() {
setScreen(new SplashScreen());
}
and i can load up a tablelayout by setting it up in the main (i just put the table layout test in as the main)
it works
but i cant get the menu to show up after the splash screen fades out
i was thinking maybe i should figure out how to setup the abstract screen
i came across this project but they call it screen manager the source is at the bottom
im trying to figure out how to use it with the code i have right now
http://bioboblog.blogspot.com/2012/08/libgdx-screen-management.html
this is the same thing as abstractscreen right?
^ Does something here help?
Creating a Game in Java - Episode 3: Switching Screens
TmI7DRlGYq4
thanks for the help guys i got the menu working but i hit a little problem here
so i can manage to load the splash screen after the main like this, it works no problem
public void create() {
setScreen(new SplashScreen());
}
and i can load up a tablelayout by setting it up in the main (i just put the table layout test in as the main)
it works
but i cant get the menu to show up after the splash screen fades out
i was thinking maybe i should figure out how to setup the abstract screen
i came across this project but they call it screen manager the source is at the bottom
im trying to figure out how to use it with the code i have right now
http://bioboblog.blogspot.com/2012/08/libgdx-screen-management.html
this is the same thing as abstractscreen right?
^ Does something here help?
Creating a Game in Java - Episode 3: Switching Screens
TmI7DRlGYq4
thats actually the tutorial i got the code from for the splash screen
heres the splash screen
http://pastebin.java-gaming.org/909d61d7357
heres the mainmenu (the menu code is kinda the same as the tablelayoutest.java, its one of the libgdx test)
http://pastebin.java-gaming.org/4909d067d53
i get a null pointer exception whatever that means :clue:
http://pastebin.java-gaming.org/09d6d237752
You’re going to have problems if you don’t know what a NPE is. A Null Pointer Exception is basically thrown when something tries to use a null value like an object - usually you’re forgetting to initialize an object or something.
Anyways, it’s probably because you’re trying to resize() the menu screen manually before creating it, or perhaps you are feeding it null ints. Where’s the code for the Game class?