Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / SetTransitionMode on Android

Author
Message
Lucas Tiridath
AGK Developer
16
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 29th Feb 2016 08:12
Hi. Sorry if this has been asked before, but I'm having some trouble with the SetTransitionMode command on Android. Basically as far as I can see, it doesn't seem to do anything, and the screen always rotates. My understanding was that passing 0 into this command would make it do a hard cut instead of rotating. Does anyone else have this problem or know how to solve it?

For an example, here is some code in AppGameKit BASIC that (for me at least) demonstrates the problem.



If anyone has any hints on solving this, it would be greatly appreciated. Thanks!
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 29th Feb 2016 09:13
My broadcast doesn't work so can't test this

It could be that your phone only supports rotation, have you any apps that doesn't rotate on your phone?
Lucas Tiridath
AGK Developer
16
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 29th Feb 2016 19:01
Quote: "It could be that your phone only supports rotation, have you any apps that doesn't rotate on your phone?"

That's an interesting thought. It never occurred to me that this could be a device specific issue; I had rather assumed that the rotation was handled by AppGameKit itself, rather than Android. However it does seem like you're right though. I had a look at a bunch of other apps on my tablet and they're all rotating in the same way. I tried some games and they even have the same problems mine do about rotating and then only afterwards updating the screen resolution, which makes it look momentarily glitchy (this is why I wanted to turn it off). As another test, I tried it on my phone, and I have the reverse problem, where it always does a hard cut and never rotates, and again, that does seem to be true for all the apps I've tested on it.

Well there you go! Thanks for figuring that one out for me! It's a bit of a shame we can't control it, but I guess that's just the way it is. If this is confirmed to be the case, it might be nice for it to be added to the documentation, to make it clear that it may not always work. Anyway thanks again!
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 29th Feb 2016 23:08 Edited at: 29th Feb 2016 23:09
Well, it's in the documentation. That's how I figured it out. Perhaps could be worded differently to make it more clear.

Quote: "Sets how the screen transitions from a landscape to a portrait orientation and vice versa. This is only applicable when orientation changes are supported."
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 1st Mar 2016 00:35
I forgot about that command, it is from the early days where AppGameKit handled orientation by itself and drew the screen at an angle. Orientation changes are now handled by the device so this command does nothing, I'll update the documentation.
Lucas Tiridath
AGK Developer
16
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 1st Mar 2016 07:31
Thanks Paul, that's useful to know!

Ah I misread that line from the docs as meaning that it was only applicable when you had enabled rotation through SetOrientationAllowed. Makes sense now!
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 1st Mar 2016 10:03
Quote: "Orientation changes are now handled by the device so this command does nothing"


Ah

Login to post a reply

Server time is: 2024-11-25 09:58:58
Your offset time is: 2024-11-25 09:58:58