Is it possible to modify LibGDX source code?

Anything libgdx related goes here!

Re: Is it possible to modify LibGDX source code?

Postby evilentity » Tue May 14, 2019 9:45 am

If your stage size is consistant between screen sizes this way should work just fine. Fixing size of the stage root to something sensible and extend viewport should do the trick.
Looking for a freelancer? PM me!
Check out libgdx discord server!
evilentity
 
Posts: 4849
Joined: Wed Aug 24, 2011 11:37 am

Re: Is it possible to modify LibGDX source code?

Postby shatterblast » Tue May 28, 2019 2:01 am

mopa9800 wrote:I want to simulate the touch by using these methods, but for some reason I want to send the stage position, not the screen position.

The shortcut way would be use something like the unproject() method of Camera or Viewport. In that way, you can go about your normal business without constantly converting things.

https://github.com/libgdx/libgdx/wiki/Coordinate-systems#touch-coordinates
shatterblast
 
Posts: 404
Joined: Sun Jul 06, 2014 1:14 pm

Previous

Return to Libgdx

Who is online

Users browsing this forum: Bing [Bot] and 1 guest