appmobi supported orientations

Discussion and feedback on Construct 2

Post » Thu Feb 16, 2012 9:05 pm

Why does phonegap get a setting for supported orientations, and appmobi does not? Can appmobi get this? appmobi runs better and has sound, would be nice if it also had the supported orientations options.
B
8
S
3
G
2
Posts: 107
Reputation: 2,219

Post » Thu Feb 16, 2012 10:33 pm

I was wondering this also. I've looked at editing the html file to lock the orientation and I've googled ways to set it to landscape but I've not managed to find anything.

Also on a side note, the preview looks and plays perfect on AppMobi but the end result apk on my phone is zoomed in and the screen doesn't fit.
ImageImage
Mr. Green - Platform/puzzle game out now!
B
24
S
7
G
1
Posts: 222
Reputation: 3,325

Post » Fri Feb 17, 2012 3:16 am

It's on our todo list!
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Fri Feb 17, 2012 4:46 am

Awesome Thanks!
B
8
S
3
G
2
Posts: 107
Reputation: 2,219

Post » Fri Feb 17, 2012 10:03 pm

@Bert Just did a quick and dirty test and got our locking orientation code: AppMobi.device.setRotateOrientation("landscape"); working. Just search your index.html code and paste it in the top of the "appMobi.device.ready" event listener function.

We also have orientation setup when you build the app through our build system.

I recommend trying your game on device by using our "appLab" test container (can be found in both the App Store and Market), since our XDK emulation doesn't always display the C2 output correctly.

You can find the appMobi API commands here: http://www.appmobi.com/documentation/jsAPI.html

Just make sure the event "appMobi.device.ready" has fired before making any calls since the appMobi.js lib has to be loaded
appMobi
B
12
S
3
G
4
Posts: 22
Reputation: 2,698

Post » Fri Feb 17, 2012 10:27 pm

Thanks Tyler! I will try this. Also please keep in mind I do not know how to program, so I will do my best. I've tried my game through both the emulator and the applab app, I've also exported and ran it on an Android. The screen turns with the phone(not what I want). I assume if I want "portrait"(I do) I just put that where landscape goes. Here is a link to my game on the chrome store. Check it out if you like there are cool screen shots and a video of it. Maze Manor

As you can see it was designed for a mobile device. Also there is a $99 fee for pro support on appmobi IOS output, would that support help with device orientation if I had a problem with it? I was planning on buying it anyway once my app(I mean construct2) is ready. There is a small list of things I need to make my game an app.

1. Device rotation locked
2. Sound not to randomly stop working(this might be fixed with the RAM issue)
3. Textures only to be loaded to RAM as needed(not the whole game on boot up)

B
8
S
3
G
2
Posts: 107
Reputation: 2,219

Post » Fri Feb 17, 2012 10:37 pm

I can answer:

1) Can be done see posts above
2) Strange, as far as I know appmobi (and apple device) doeasn't have problems with html5, but then again currently construct2 is not optimized for appmobi (it's on the todo list of Ashley)
3) C2 doesn't currently support resources streaming, if I'm not mistaken is on the todo list.
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Fri Feb 17, 2012 10:47 pm

Yes they are all on the to do list, thankfully.
B
8
S
3
G
2
Posts: 107
Reputation: 2,219

Post » Sat Feb 18, 2012 6:44 am

[QUOTE=AppmobiTyler] @Bert Just did a quick and dirty test and got our locking orientation code: AppMobi.device.setRotateOrientation("landscape"); working. Just search your index.html code and paste it in the top of the "appMobi.device.ready" event listener function.

We also have orientation setup when you build the app through our build system.

I recommend trying your game on device by using our "appLab" test container (can be found in both the App Store and Market), since our XDK emulation doesn't always display the C2 output correctly.

You can find the appMobi API commands here: http://www.appmobi.com/documentation/jsAPI.html

Just make sure the event "appMobi.device.ready" has fired before making any calls since the appMobi.js lib has to be loaded[/QUOTE]

Any help with this would be greatly appreciated. It's like Chinese to me. Maybe just an example html with the orientation locked?
B
8
S
3
G
2
Posts: 107
Reputation: 2,219

Post » Sat Feb 18, 2012 7:09 am

Never mind I got it to work! woot!
B
8
S
3
G
2
Posts: 107
Reputation: 2,219

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Tom and 18 guests