alajajm's Recent Forum Activity

  • Good morning my dear, helpful friends.

    Okay, So I have finished my very first app using Construct2. I have launched it and it is available and searchable on The Google PlayStore. But how do I display banner ads?

    Does it involve creating Jsons, XMLs or any files or simply clicking here and there?

    Can you send a full reply?

    Thank you

    Hello there,

    First, you need account with AdMob: https://www.google.com/admob/ then if you are done. sign-in to your account then go, Monetize New App --> Add Your App Manually. Then write your app name and chose the platform. click Add after that, then chose Banner and write a name for it down by "Ad unit name". After that click skip at Firebase for now. Finally Cilck at "Done".

    it will take you back to new window. Chose your App from the left. Look at the right and copy your "Ad unit ID"

    look at the picture:

    http://imgur.com/ru44fcS

    Second, in your C2 Project open it and do as follows: Insert New Object --> Admob Ads

    Third, click at the Admob Ads in your C2. You will see its properties. paste your "Ad unit ID" to "Banner ID ( Android )" Or

    Banner ID ( IOS ).

    Fourth, do as follow:

    Add event -> System -> On Start of Layout

    -Add action -> AdmobAds -> Preload banner ad

    -Add action -> AdmobAds -> Show banner -> Position: Bottom center -> size: Smart Banner -> Done

    if you are building your app using Phonegap then add this plugin to your Config.xml File:

    <plugin name="github.com/cranberrygame/cordova-plugin-ad-admob" source="npm" ></plugin>[/code:1v4b3rj2]
    
    I hope this help...
    
    Good Luck
  • Hello! I made a new game and exported it with Cordova. However when I try it on my android (It is a Galaxy S7) the game doesn't fill the whole screen (there are 2 black bands at the top and bottom). Even if I stretch the background image, I still have the same problem (the black bands are not filled with the background). What should I do? Thank you!

    I had this problem long ago. Anyhow, Here check out these two tutorials:

    https://www.scirra.com/tutorials/1126/multiple-screen-sizing-for-all-mobile-devices/page-1

    https://www.scirra.com/tutorials/73/supporting-multiple-screen-sizes

    Good Luck

  • I already know you have to turn off Auto Font Size. And I know you have to use the "Set CSS Style" action. But when I add the action "Set CSS Style", what do I type into the top field and the bottom field to change the size of the text font? What are some other commands I could use as well? Any help would be greatly appreciated!

    First, Check out this site: https://www.w3schools.com/css/default.asp this site has all you need in how to use CSS.

    If you go down you will see some codes like so:

    body {
    font-size: 20px;
    }
    [/code:2v9bq11t]
    
    ignore everything in that line of code because you will only need this from it: [code:2v9bq11t]font-size: 20px[/code:2v9bq11t]
    
    So for the first box in C2 which is "Property name" you will enter "font-size" 
    Second box "Value" you will enter "20px"
    
    Anyhow, this only an example an how to use CSS in C2. One last thing, if you go back to the site you can see that "Property name" is in Red and the "Value" is in Blue.
    
    I hope this help.
    
    Good Luck ....
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • First check out your z order, if that did not do anything then move sprite to another layout, and be sure the layout is the second or the first of the order of your layouts.

  • >

    > > Hello,

    > > Whenever I upload my phone to phone gap it return with a parsing error when I try to run it on my phone.

    > >

    > > I have Signed the APK, and my phone is enabled to allow unknown sources to install APk's.

    > >

    > > I have absolutely no clue with as to what to do.

    > > Thanks,

    > > Ian

    > >

    >

    > Yes, I had this problem. Since Phonegap automatically generate "X86 APK" and most android phones use "ARM APK" it kind of a big problem. Any how, What you need to do is add this line of code to your Config.xml file:

    >

    >

    <plugin name="cordova-build-architecture" spec="https://github.com/MBuchalik/cordova-build-architecture.git#v1.0.1" source="git" />[/code:28isyiwk]
    > 
    > then zip the files, and re-upload it to phonegap. I hope this solve your problem.
    > 
    > Good Luck.   
    > 
    
    Many thanks for your tutorials ('_;)
    
    I added the line of code to the xml file, but it showed me the same parsing problem.
    
    Any thoughts on how to fix this?
    

    Here check out this full Phonegap tutorial I made hours ago: https://www.scirra.com/tutorials/9492/build-android-apps-with-phonegap

    I hope this will help.

  • Here is Phonegape tutorial: https://www.scirra.com/tutorials/9492/build-android-apps-with-phonegap

    Good Luck .....

  • By Today Or Tomorrow I will make a guide for C2 + PhoneGap. So hopefully you could wait until then.

  • Thank you for the answer!

    So admob support only phone and tablets.

    Can you tell me, which screen size need to use if I want to create app with c2?

    Check Out this tutorial by Fronne:

    https://www.scirra.com/tutorials/1126/multiple-screen-sizing-for-all-mobile-devices/page-1

    P.S. I did Use His tutorial and it worked perfectly. Check out my Game "Shape N Balls" On Google Play & Apple Store, so you can see how the tutorial really helped.

    Good Luck

  • First, Could you explain yourself please.

    What your saying doesn't make any sense because your are first talking about Apple Mac app, and what I can think of here is App on Platformed Mac OS X.

    However, you made it confusing again when said you want to use AdMob ads. Since what I know that admob provide there serves only for Phones or tables.

  • Hello,

    A question for Apple experts please.

    I have finally finished my first game and published it on Android. Now I am moving to iOS.

    I don't have a Mac so I hired one in the cloud ($20 for a month). It is very slow but for uploading the app it was OK.

    I followed the tutorials and generated a certificate and P12 file. I generated a public key and a private key. I generated the provisioning profile. I used Cocoon to build and sign my app and I used the App loader to load it to iTunes and currently awaiting approval.

    The process wasn't easy mainly because I don't understand what the certificate files, P12 and provisioning profiles are, but I followed the instructions and it seems to have finally allowed me to upload the app.

    My questions are

    1- In 15 days my access to the virtual Mac will expire. What do I need to store from the Mac before I lose access to it? Do I need the file (CertificateSigningRequest)? Do I need to keep the keys? If so, how do I get them from the keychain? Do I need the P12 file? Do I need the provisioning profile?

    2- The certificate I got is valid for one year. What happens when it expires? Do I need to upload the app again with a new certificate?

    3- If I don't renew my developer subscription next year, will my app disappear from the store?

    Thanking you in advance for your help.

    Since, I'm new to IOS like you, but I new some stuff.

    For, Number One just be sure to save P12 some where in your system because you may need it when you renew your Certificate.

    For 2 and 3. According to Andy Obusek form stackoverflow.com, " Your live apps will not be taken down. Nothing will happen to anything that is live in the app store. Once they formally expire, the only thing that will be impacted is your ability to sign code (and thus make new builds and provide updates). Regarding your distribution certificate, once it expires, it simply disappears from the ‘Certificates, Identifier & Profiles’ section of Member Center. If you want to renew it before it expires, revoke the current certificate and you will get a button to request a new one.

    Regarding the provisioning profile, don't worry about it before expiration, just keep using it. It's easy enough to just renew it once it expires. The peace of mind is that nothing will happen to your live app in the store." To see the full post, check out this out: http://stackoverflow.com/questions/10759973/proper-way-to-renew-distribution-certificate-for-ios

    I hope this helped..........

    Good Luck

  • alajajm,

    Last time I have tried to build the apk in phone gap, but i am not getting normal apk. I got that time debug apk. that's why I am using intel xdk. please suggest something.

    Yes, if you don't use your Google Key Store the apk that will be generated by phonegap is a debug one. So you need to upload your keystore format if you don't have a keystore format.

    Check out this video in how to Convert JKS to KEYSTOR FORMAT using Intel XDK:

    And as I told before add this code to your Config file:

      <plugin name="cordova-build-architecture" spec="https://github.com/MBuchalik/cordova-build-architecture.git#v1.0.1" source="git" /> [/code:18lzerp5]
    
    I hope this will help you...
    
    Good Luck
alajajm's avatar

alajajm

Member since 26 Jul, 2016

None one is following alajajm yet!

Connect with alajajm

Trophy Case

  • 9-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies