2d game with libgdx where to start?

^ no that seems correct.

Could you just clear up something for me first? Here’s my question:

Thanks!

EDIT: wrong thread.

^ no that seems correct.

Could you just clear up something for me first? Here’s my question:

Thanks!

EDIT: wrong thread.

after the splash screen nothing loads it just gives me that null pointer exception

Well now that’s weird…

…because as far as I understand it, your error seems to happen during resize(), which is called when, well, the screen is resized.

I don’t know in what scenario resized() is called upon loading the screen… anyone? ???

Resize() method will be always called at least once on screen creation.

Ah I didn’t know that, thanks! ;D

Although now, idk what the NPE is for since it looks like screen isn’t be null…

When your game loaded, the screen is literally changed from 0x0 to WxH. That’s where the resize() called. *)

From resize’s comment

[quote]Called when the {@link Application} is resized. This can happen at any point during a non-paused state but will never happen before a call to {@link #create()}.
[/quote]
*) disclaimer: Not my find. I read it somewhere but forget the link.

Just in case you’re confusing me with hellrazer21, this is not my game, it’s hellrazer21’s :slight_smile: I’m just trying to help out, but it’s nice to have that knowledge that resize() is called when the screen is loaded. Might help me in the future with my own projects :stuck_out_tongue:

after the splash screen nothing loads it just gives me that null pointer exception

Well now that’s weird…

…because as far as I understand it, your error seems to happen during resize(), which is called when, well, the screen is resized.

I don’t know in what scenario resized() is called upon loading the screen… anyone? ???

Resize() method will be always called at least once on screen creation.

Ah I didn’t know that, thanks! ;D

Although now, idk what the NPE is for since it looks like screen isn’t be null…

When your game loaded, the screen is literally changed from 0x0 to WxH. That’s where the resize() called. *)

From resize’s comment

[quote]Called when the {@link Application} is resized. This can happen at any point during a non-paused state but will never happen before a call to {@link #create()}.
[/quote]
*) disclaimer: Not my find. I read it somewhere but forget the link.

Just in case you’re confusing me with hellrazer21, this is not my game, it’s hellrazer21’s :slight_smile: I’m just trying to help out, but it’s nice to have that knowledge that resize() is called when the screen is loaded. Might help me in the future with my own projects :stuck_out_tongue:

so how would you guys go about doing this? cause im probably just going to look for a working project and just start modifying it to make it work the way i want.
all this copying and pasting code has been nothing but problems :emo:

so how would you guys go about doing this? cause im probably just going to look for a working project and just start modifying it to make it work the way i want.
all this copying and pasting code has been nothing but problems :emo:

[quote]so how would you guys go about doing this?
[/quote]
Through painful trial and error, desperate google search, endless daydreaming, etc

I would try to understand the code. You can’t expect to cobble together some code snippets and have them work without understanding what is going on.