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 / how to rotate display on iphone?

Author
Message
haliop
User Banned
Posted: 19th Aug 2012 14:48
im using a resolution of 640 x 480 at setup file, using the landscape
setup.

when i use AppGameKit viewer from my Iphone the view dosenot rotate so i see it with verticla with black borders , how can i view it on sideways?
is it even possible using AppGameKit?

Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 19th Aug 2012 15:24 Edited at: 19th Aug 2012 23:52
It's been a while since I've used the AppGameKit Viewer but if I remember correctly, the viewer is locked to a vertical orientation and so it may have nothing to do with your code.

Edit-well whataya know, it does rotate...nothing to see here, move along.

MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 19th Aug 2012 15:54
Quote: "setup file"


if its setup.agc then I do believe that is just for Windows only...

Quote: "
rem Setup.agc
rem ----------*** AppGameKit Setup File ***----------
rem
rem NOTE: This file is used by the core binary
rem to configure basic setup values required
rem prior to execution of the AGC source code.
rem No spaces allowed beyond this point:

rem Window title (delete to hide window bar)
title=Space Shooter

rem Specify the initial device width
width=1024

rem Specify the initial device height
height=683
"


I could be wrong...

I believe you should be using something like

Quote: "
SetOrientationAllowed

Description

Sets which orientations the AppGameKit will allow the app to rotate to. There are two portrait and two landscape orientations, one for the right way up and the ther for upside down. On platforms that can't rotate, like Windows or Mac, this command has no effect and the app will always be drawn right way up.

A value of 1 for each orientation will determine if the app will rotate when the device is held in that orientation. A value of 0 will keep the app at its last valid orientation.

```````
Definition
SetOrientationAllowed( portrait, portrait2, landscape, landscape2 )
```````
Parameters
•portrait - The default device orientation.
•portrait2 - The upside down portrait orientation.
•landscape - The landscape orientation when the device is rotated left from its default position.
•landscape2 - The landscape orientation when the device is rotated right from its default position.
"


where you put this, is beyond me... also look for

Quote: "
GetOrientation

Description

Returns the current orientation of the device. The values returned are: 1 = portrait mode, 2 = portrait mode - 180 degrees rotation, 3 = landscape mode - 90 degrees counterclockwise, 4 = landscape mode - 90 degrees clockwise
```````
Definition

integer GetOrientation()
"


Again I am still relatively new to AppGameKit so I could be wrong about the whole thing...

I hope to play with AppGameKit soon...

Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 19th Aug 2012 16:10
Setup.agk is windows only and has no effect on none-windows platforms. To enable rotation, you do indeed SetOrientationAllowed command, which can be used whenever you want within your code. (But I'd suggest towards the top somewhere.

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
haliop
User Banned
Posted: 19th Aug 2012 16:19
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 19th Aug 2012 21:18
You are welcome and thanks Mobiius for confirming glad to see I am as clued up on AppGameKit as I am even though I have not touched it yet... just been reading threads, and I find that so informative...

Glad to help anytime

haliop
User Banned
Posted: 19th Aug 2012 23:35
You should try it it's awesome I left dark gdk cause it is so fun to play with and I haven't even touched c++ learned basic in 2 days

MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 20th Aug 2012 00:17
I have been toying with DBP for some time now... its the same language alsomt...

Login to post a reply

Server time is: 2024-05-02 09:16:10
Your offset time is: 2024-05-02 09:16:10