![]() Hence why I want to change the orientation dynamically. I initially started working on the Play Screen and the sizes and positions where set based on orientation="landscape", and now that I am working on the Main Menu it is based on orientation="portrait". ![]() Now I want my Main Menu in portrait but the Play Screen, where the game is on, should be in landscape. The only thing that changes between the two images is orientation="landscape" and orientation="portrait" in my manifest. The position and size of Actors and Sprites are all based on () and (). Here are some images that should make more sense. I've also tried swapping the () and (), respectively, but can't seem to get the position of sprites and actors correct.Īlso, in my manifest I have orientation="landscape". ![]() I use () and () to align Sprites and Actors, so it looks "right" on different devices. But it appears that you can't call startActivity or the like, obviously, as LibGDX is platform independent. And the new Activity would intialize the Play Screen. I thought I could just start another Activity and have the Play Screen extend Game. Is there anyway of changing the orientation dynamically? I want to, say, have the Main Menu screen portrait, then the Play Screen landscape. I have multiple classes that implement Screen.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |