[PLUGIN] appMobi Plugin Updates

Post your completed addons to share with the community

Post » Mon Nov 05, 2012 8:41 pm

@xyboox - Actually there is a way, but not an action. It's an expression called appmobiDev.Cookie. However, I just looked and saw that it only works when not under DC. I will add that DC support for it and update github shortly.

Thanks
B
19
S
4
G
5
Posts: 116
Reputation: 4,369

Post » Mon Nov 05, 2012 8:43 pm

Great stuff @tap! Thanks once more.
B
16
S
4
G
3
Posts: 46
Reputation: 2,875

Post » Tue Nov 06, 2012 2:10 am

[QUOTE=tap] Hey Joannesalfa

I added "Hide Status Bar"the plugin and it's live on github.

Also how much of a delay are you seeing with touch events? Can you send me the capx to have a look?

[/QUOTE]

I will send you a .capx via pm soon.

Also i want to comment about Prevent auto-rotate, it doesn't even work because i used a trigger event, it doesn't work and still auto rotates when i do inverted portrait orientation and if i use every tick event to prevent auto-rotate, touch buttons take loooooooooooooong time to response and still auto-rotate

I wanted to make it static orientationJoannesalfa2012-11-06 02:11:24
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Tue Nov 06, 2012 12:55 pm

@tap - I found a spritefont plugin, but it is no longer being developed and does not work in appMobi. You can check it out here if you like:

http://www.scirra.com/forum/plugin-spritefont-28th-august-2012_topic45876_page1.html

And yep, that's the problem! Sorry but I don't know how to 'wrap the canvas tag in center tags or set the style so its centered.' Something I need to do inside of one of the .js files I take it?
B
27
S
8
G
5
Posts: 429
Reputation: 6,902

Post » Tue Nov 06, 2012 7:44 pm

@xyboox - Files are now updated on github. You should be all set.



@Joannesalfa - I have not seen a PM but created a test capx and the orientation stays to what I set it to. Here is what I do:

On Start of Layout
- Action: appmobiDev Device > Prevent Auto-Rotate
- Action: appmobiDev Device > Set orientation to Landscape

I built it and tested it on device and the game starts and is locked in landscape mode and does not change when I rotate the device. I would only call these at the start and not in a loop as the case with every tick. That *could* be why you are seeing performance issues.



@Tobye - If you exported via appMobi using the device browser, just open up index.html in your favorite text editor. Scroll down and you will find a canvas tag. Just wrap that in center tags. In you index.html file you may see the start of the canvas tag around line 34. It would look like this <canvas ... >. Simply put the opening center tag before the canvas tag. Like so: <center><canvas ...> Then scroll down to around line 44ish and you will see the close canvas tag. It will look like this </canvas>. Just add a close center tag after it like so: </center>

As for the image font, I will check out the link you sent.

Thanks.


            
B
19
S
4
G
5
Posts: 116
Reputation: 4,369

Post » Tue Nov 06, 2012 8:36 pm

@tap Oops, pm sent.
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Wed Nov 07, 2012 6:42 pm

@tap - thanks, I tried it out and it did centre the image, but it still doesn't resize it to fill the screen. Still looks much better though and maybe I can play around with it to get a suitable fit later.
B
27
S
8
G
5
Posts: 429
Reputation: 6,902

Post » Wed Nov 07, 2012 6:54 pm

@Tobye - Glad that worked for you. If you are looking to fill the complete screen and not have the letterbox bars there are a couple things you might want to try:

1.) Design your game with a width/height ratio that matches so that it can scale to fill.

2.) Design your game to fit the largest screen and then use crop for smaller screens. This can be done by putting "filler" static content that wont matter if it is cropped out.

3.) Edit your index.html to include a background image that is designed to fit the style of the game. This way you dont get black bars you get whatever design elements you add.

4.) While not preferable, you can always create different sized copies of the game for the different platforms.

Just some thoughts.

Best of luck.
B
19
S
4
G
5
Posts: 116
Reputation: 4,369

Post » Wed Nov 07, 2012 9:16 pm

Hey @tap i need to confirm, did you get my .capx via PM?
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Thu Nov 08, 2012 2:50 am

Yep @Joannesalfa, I plan on taking a look at it tomorrow morning to see whats going on. Thanks!
B
19
S
4
G
5
Posts: 116
Reputation: 4,369

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests