[PLUGIN] appMobi Plugin Updates

Post your completed addons to share with the community

Post » Wed Sep 19, 2012 4:31 pm

@tap cool thank you is there anyway i have to call this function or is it now standard on all apps?
also hows the accelerometer support with direct canvas looking?
B
20
S
3
Posts: 109
Reputation: 1,967

Post » Wed Sep 19, 2012 6:48 pm

@eldods - I actually added power and geolocation yesterday and will now be adding in the accelerometer support. After that is added I want to do some quick initial testing and then the updates should be on github sometime tomorrow.

@degortg - I'm looking into your capx now. I don't know how much I can do for you. It's not a plugin issue and I don't control how C2 exports / scales games, but I will take a look and see if there is some way I can help you resolve this regardless.

Thanks all.
tap2012-09-19 19:15:12
B
19
S
4
G
5
Posts: 116
Reputation: 4,369

Post » Wed Sep 19, 2012 7:37 pm

@degortg - I built your capx and see the issue you are having. Instead of fussing with the dimensions of the game, what I did was simply edit the exported index.html file and wrap your canvas in <center> tags and now the game is centered on screen and you have the black bars even on both sides so it looks better. So use center tags or css or whatever you want. All you have to do is center the canvas tag.
B
19
S
4
G
5
Posts: 116
Reputation: 4,369

Post » Thu Sep 20, 2012 1:08 am

@tap sounds great been waiting for this for a while . When you say geolocation do you mean from within c2s event sheet?

Also how will i know when you post the update with the accelerometer support on github? eldods2012-09-20 01:13:18
B
20
S
3
Posts: 109
Reputation: 1,967

Post » Thu Sep 20, 2012 2:00 am

@tap,Thank you!
B
7
S
1
Posts: 32
Reputation: 1,288

Post » Thu Sep 20, 2012 2:49 am

@eldods - if you have a github account you could click "watching" https://github.com/koza/appMobiC2Plugin but this time I will also PM you to let you know the files are ready. As for geo, yes you will be able to access the Lat / Long of the device from the C2 event sheet. The values are available via C2 expressions.

@degortg - no problem. I'm happy to help.
B
19
S
4
G
5
Posts: 116
Reputation: 4,369

Post » Thu Sep 20, 2012 10:55 am

@tap awesome thank you
B
20
S
3
Posts: 109
Reputation: 1,967

Post » Thu Sep 20, 2012 1:51 pm

@tap, I'm sorry, but did not work, you can put the modified index.html,so I can watch it?
B
7
S
1
Posts: 32
Reputation: 1,288

Post » Thu Sep 20, 2012 7:46 pm

@degortg - just removed the position:fixed in the canvas css class and your center tag will work.
B
19
S
4
G
5
Posts: 116
Reputation: 4,369

Post » Fri Sep 21, 2012 5:09 pm

@tap,look

     <style type="text/css">
          * {
               padding: 0;
               margin: 0;
               -webkit-user-select:none;
               -webkit-tap-highlight-color:rgba(0, 0, 0, 0);
          }
          body {
               background: #000;
          }
          canvas {
               position: fixed;
          }
    </style>
I remove the line
     position: fixed;
or
canvas {
     position: fixed;
}
The result does not change: (
B
7
S
1
Posts: 32
Reputation: 1,288

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests