Java Camera Navigation (no external Libraries)

Hello guys. I have a question. Does java have any form of 2D camera or at least something to navigate around the map? Also if you guys say that using the keyboard to move the environment around instead of the player, then please tell me how that is going to effect online play, will other players see the environment move around or will it just be one player?.

How about using Graphics2D.translate(double,double)?

What exactly would that do?

THANK YOU!!! ME AND MY IMAGINARY PEOPLE BASK IN YOUR GLORY!!! THANK YOU THANK YOU THANK YOU!!!

@GabrielBailey74
Exactly as the JavaDoc explains, it translates every drawing by the specified inputs.

@lordberzerker97
Glad to help ;D

@GabrielBailey74
offset modification ;D

Well, I tried that.
Added different floats, +, -.
I was thinking he meant like FULL rotation, where you could rotate it pretty much to a side view, from the left/right of the image.
Didn’t work out for me like that. :frowning:
Just basicly took where ever i was drawing and moved it.

Before:
X-------X

  •      -
    
  •      -
    

X-------X

After:
X-------X

  •      -
    
  •      -
    

X-------X
I know it’s his thread :$, but I was wondering if i could do something like that, or possibly create W,A,S,D/arrow key camera rotation.
OOooo

Yeah it’s called hijacking thread. In other forum this’s crime and unforgivable. Dunno about here ;D j/k
If you draw everything on BI first, you can move camera by changing the x,y when drawing the BI. For example check my java4k entry, I used that for shake effect so you dont need translate.