Split screen...

Anything libgdx related goes here!

Split screen...

Postby steg90 » Thu Apr 12, 2012 2:41 pm

Hi,

I've tried and tried but cannot get part of my screen to scroll without the whole screen scrolling.
I basically have a class which implements screen with two stages in it, one stage I add my tile map rendering actor which has an
ortho camera, the other stage has a hud - simeple image actor. Now, when I update the cameras x position in the first stage,
the tile map moves but so does the hud stage. How can I get a hud just below my tile map? Do I need
to change the view port or something? I'm confused??!?!?

Thanks,
Steve
steg90
 
Posts: 38
Joined: Sun Apr 08, 2012 8:27 pm

Re: Split screen...

Postby mzechner » Thu Apr 12, 2012 4:16 pm

If you have two stages (one for the tilemap, one for the hud), there is not way one camera can influence the other. Are you sharing the camera between the two stages?
mzechner
Site Admin
 
Posts: 4709
Joined: Sat Jul 10, 2010 3:50 pm

Re: Split screen...

Postby steg90 » Fri Apr 13, 2012 12:19 pm

Hi,

Got this to work, I had view port settings all messed up!

Thanks,
Steve
steg90
 
Posts: 38
Joined: Sun Apr 08, 2012 8:27 pm

Re: Split screen...

Postby kalimur » Thu Jun 28, 2012 2:47 pm

HI, I have the same problem. Basically, I don't know how to get 2 independent zones in the screen. Can you post the code used to achieve this?
Thanks!!
Kalimur

steg90 wrote:Hi,

Got this to work, I had view port settings all messed up!

Thanks,
Steve
kalimur
 
Posts: 6
Joined: Wed Jun 20, 2012 4:42 pm


Return to Libgdx

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], haimat and 4 guests