Hack Forums
[Java] Anyone mess with LibGDX? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Java] Anyone mess with LibGDX? (/showthread.php?tid=5494010)



Anyone mess with LibGDX? - HarveySpecter - Dec 14, 2016

Been messing with LibGDX for my Computer Science class. I'm currently working on a Main Menu for my game but I'm having trouble with my code for it.

Here's the code:
http://pastebin.com/DRHtKGzY

Been getting an error about "cannot find method, newDrawable."

Any help would be great.


* - Stealthâ„¢ - Dec 14, 2016

Code
import javafx.scene.control.Skin;

You're probably importing the wrong Skin class.


* - HarveySpecter - Dec 14, 2016

(Dec 14, 2016 06:01 PM)Stealthâ„¢ Wrote:  
Code
import javafx.scene.control.Skin;

You're probably importing the wrong Skin class.

Thank you so much that, fixed the problem. If you can the last thing I'm getting an error on is in my
@Override
public void render() {
Gdx.g1.g1ClearColor(1, 1, 1, 1);
Gdx.g1.g1Clear(GL20.GL_COLOR_BUFFER_BIT);
stage.act();
stage.draw();
}
its telling me that
cannot find symbol
variable g1


edit: nvm answered my own question. thanks again


* - Stealthâ„¢ - Dec 14, 2016

(Dec 14, 2016 06:08 PM)HarveySpecter Wrote:  Thank you so much that, fixed the problem. If you can the last thing I'm getting an error on is in my
@Override
public void render() {
Gdx.g1.g1ClearColor(1, 1, 1, 1);
Gdx.g1.g1Clear(GL20.GL_COLOR_BUFFER_BIT);
stage.act();
stage.draw();
}
its telling me that
cannot find symbol
variable g1


edit: nvm answered my own question. thanks again

http://stackoverflow.com/questions/41154277/main-menu-code-not-working-libgdx/41154824#41154824

Accept my answer ;)


* - -Base- - Dec 15, 2016

I've been using LibGDX for over 3 years. Check out my website or check out TerraLegion, an open-source game I've been developing for over a year now.