ondraayyy's Recent Forum Activity

  • bump....

  • I've seen some games made with C2, when a player touches the object, a description slides down below the object. For example buying item at a shop, when you tap the item, a description slides down below the item and when you untap the item the description slides back up and disappear, does anybody have an example event sheet for this?

  • firezombie444 It's configured in each of the platform developer login page, it isn't configured in the PhoneGap IAP Plugin nor any other IAP Plugin. For instance, in iOS Platform, login to iTunes Connect go to "Apps" then click on your Apps go under the "In-App Purchase" Tab and then you can create a new IAP Product and configure the name of the product ID, Price, Description, Screenshot, etc.

  • GamerGon sandronize You are welcome, if you have any more questions, feel free to reply me here. Good luck with your game.

  • Does this have App Store rate action/condition?

  • Thx lennaert I figured it out, turns out one of my Event Sheet is messing up with the local storage actions.

  • As stated in the subject, it keeps resetting to 0

    I am not sure if I did something wrong with the event sheets or am I missing out something.

    But I'm pretty sure I'm doing it right. Can anybody help me out here?

  • Limepeek hey I am facing the same problem as you, my local storage values keeps resetting to 0 have you solved it yet?

  • I am making this tutorial since I promised myself to make one if I manage to get my very first iOS game to the App Store so here it is. I don't see many tutorials for iOS Developers on the C2 Forum nor website. There are only a few of them compared to the other platforms and they are quite outdated.

    Now, in order for you to upload your app to the App Store you need to pass the "Apple Review Board", let's assume that the "Apple Review Board" is the final boss. The waiting time for review is about 1-2 weeks so make sure you filled up all of your information right & get your game fully tested and only submit it to the Apple Review Board once you are 101% sure that it's eligible for the App Store.

    ***PLEASE NOTE***

    I will not respond to any technical related questions such as "Why is my screen black?". I will only respond to the iOS related question such as "Why can't I get the Game Center running?" "Why isn't the IAP working?" and I assume you already have all the basic knowledge about apple terms & agreement, etc.

    Important part of each steps are BOLDED and Underlined

    So let's skip the chitty chatty and get on with it.

    Below is the CHECKLIST for the items that you need to have to get your iOS game to the App Store :

    1) C2 Personal or Business License

    2) Latest IntelXDK

    3) IntelXDK Account

    4) A Mac OS (Only needed if you want to upload it to the App Store, I would suggest borrowing it from a friend unless you're willing to spend some cash to get a new/used one)

    5) iOS Developer Account ($99/year)

    6) Your game Splash Screen & Icons in different sizes

    7) Your "DREAM GAME" exported in Cordova using Construct 2

    Make sure you have all of those items stated above

    Step One : Exporting your Game and Importing It to Intel XDK

    Get your game exported in Cordova options, make sure you untick the "Minify Script"

    Then choose the folder you want to export the game to and click Next

    In the Cordova Options page choose the options that you want and click "Export"

    Then wait....

    Once it's finished open up intel XDK

    Log in

    Then click on the arrow thats pointing downwards on the top left hand side right next to "XDK Projects"

    Click on "New Project"

    Click on "Import your HTML5 Code Base"

    Then Import your game folder that you exported in Construct 2 using Cordova options

    Once done, enter your Project Name which can be anything, then click "Create"

    You want to choose Yes for both the options of "Use Cordova Plugins?" & "Game Project?"

    As for the Game Engine choose "Basic Canvas Game" and the version number has to be ONLY SINGLE DIGIT in between the decimals for example "X.X.X" it can't be "XX.X.X" or "X.XX.X" or "X.X.XX"

    Once you're done with this, click on "Continue" and if everything is right Intel XDK should create the project for you.

    Step Two : Configuring Your Game Build, Launch Icons & Splash Screens

    Alright, so now you got your game project created in IntelXDK

    Click on the top left hand side again, this time the "XDK Projects" button

    Then there should be your "Project Info" and "Cordova Hybrid Mobile App Settings"

    Ignore the "Project Info"

    Click the 4 buttons with the Android, Android-Crosswalk and Windows Logo (MAKE SURE THEY'RE GRAY & LEAVE the IOS LOGO BLUE)

    If you have additional plugins for your game that you want to import using IntelXDK then click on the "Plugins" section, otherwise

    Click the "Build Settings"

    Enter your App ID if you don't have one go to "Step Three"

    Enter your App Name, Description, Author, App Version

    Leave the Domain List empty unless you need to fill it up

    Leave the Cordova CLI version 4.1.2

    Tick the full screen if you want your game in Full-Screen and the status bar hidden

    Orientation "Landscape or Portrait"

    iOS Target Version "7.0 or 8"

    Exit on Suspend (This means, if you tick this option and on your iOS Device if you press the home button, the game will close and will not run on the background)

    Provisioning Profile "ADHoc" or "Production" (We'll discuss this in Step Three)

    If you got all of this figured out then go to "Launch Icons & Splash Screens"

    Yes you have to upload all the different sizes and splash screens for the icon

    My suggestion is go to http://www.simpleimageresizer.com/upload#.VX-2dPmqqko

    Resize your image there and choose the dimensions you want.

    It's very simple and easy and doing this, resizing all the size shouldn't take you more than 10 minutes

    Step Three :

    Creating your App ID, Certificate & Provisioning Profile

    Now that you've filled up the build settings there are still some field in it that is left blank and those are the "App ID" & Provisioning Profiles.

    App ID

    This is the first thing that you want to create

    So login to your Apple Developer account here https://developer.apple.com/membercenter/index.action

    Once you've done so go to Certificates, Identifiers & Profiles page. https://developer.apple.com/account/overview.action

    Click on "Identifiers" under iOS Applications NOT Mac Apps

    Here, you want to create your App ID for the App Store to identify your game (hence the name, Identifier)

    Click on the "+" button to add and configure your new App ID.

    "Your App ID Description" - I would usually put the name of your game for example "C2Tutorial"

    "App ID Suffix" click on "Explicit App ID" - For example "com.myname.mygamename"

    "App Services" - Choose the options you want for this. Usually I only tick, "Game Center" & "In-App Purchases"

    Once you've got all of this figured out then click "Next" and it will take you to the page where you want to double check the information of your App ID, if you are satisfied with it, just click Submit.

    So now you've got your App ID which is the "Explicit App ID"

    Go back to your IntelXDK > Build Settings > Under "App ID" copy paste your App ID that you just created "com.myname.mygamename"

    There you go, one down two to go

    Signing Your App Certificate

    Your app needs a certificate and it has to be signed, this might sound confusing to you, but it's not, it's actually really simple

    Go back to your Apple Dev Center and click on "Certificates" https://developer.apple.com/account/ios/certificate/certificateList.action

    Then you wanna click the "+" button

    Tick the "App Store and Ad Hoc" under "Production"

    Click Next and then it should take you to the page where it asks you to create a CSR File from your Mac, sounds complicated isn't it? Nah, no worries you just have to generate the CSR File that IntelXDK will generate for you and you just have to download it to your PC.

    Go back to your Intel XDK, click on the "Build" Tab at the top of Intel XDK (Not Build Settings)

    There are 4 options under "Cordova Mobile App Platforms"

    Of course you want to ignore the other 3

    Click the "Build" on the iOS

    You wanna click on the "Download" button under "iOS Certs"

    Then your PC will download the CSR File that IntelXDK provided for your app.

    Save the CSR File to whichever folder you want it

    Now go back to your browser, the page where you left off the "Certificates"

    You should be at the page where it says "Upload CSR file.

    Select .certSigningRequest file saved on your Mac."

    Now click on "Choose File..."

    And choose the .CSR file that IntelXDK provided for you.

    Then you wanna click "Generate"

    After this your App Certificate will be created

    Download this App Certificate

    Then go back to your Intel XDK

    Then go the section where it says "Upload Certificate" which is located under "iOS Certs"

    Now click on the "Browse" button and find the App Certificate for your app that you downloaded earlier

    That's about it for your App Certificate, now you wanna go back to the "Build Settings" for your App and we'll configure the "Provisioning Profiles" for your App in the next step

    Provisioning Profiles

    Now there are two types of Provisioning Profiles.

    Production is for the App Store which is what we're gonna be creating and Ad Hoc is for testing.

    I can tell you why I'd choose the Production (App Store) provision profile rather than the Ad Hoc ones, but then again, it'll waste your time because you'll have to listen to my own personal reasons about it.

    So let's just cut to the chase and get your App submitted to the Apple Review Board

    So go back to your "Apple Dev Center" and click on "Provisioning Profiles"

    https://developer.apple.com/account/ios/profile/profileList.action

    Then click on the "+" button to add the Provisioning Profiles for your App

    Once there you wanna click on "App Store" for under "Production" then click "Next"

    Choose your App ID - This have to match with the App ID for your App. The App ID that you just created just now (If this doesn't match, you can't even test your App and run it on your iOS device)

    Click "Next"

    Select Certificates , again, this also have to match with the certificate that you uploaded to the IntelXDK, if it doesn't Intel XDK will fail compiling the game for you. In other words, your game build will fail.

    Click "Next"

    Choose your Profile name - I would normally put "My Game Name and the version"

    Then click on Download

    Copy the Provisioning Profile to your game folder that you exported with Construct 2

    Now go back to your Intel XDK in the Build Settings

    Under Provisioning Profiles choose the "Production" instead of AD Hoc

    then click on the "provisioning production" filed and upload the provision profile that you copied to your C2 Game Folder

    Now go back to the "Build" Tab

    Build the iOS project again

    It's gonna ask you to "Use Existing" or "Upload Project"

    You wanna click on "Upload Project" since your build settings is different

    Then you want to click on "Build App Now"

    Let's wait for a moment while Intel XDK builds your app

    If your build succeed you can then proceed to the next step, otherwise...

    Go to "Emulate" tab and see if your game would run on the preview device that IntelXDK provided for you

    Now the next step is for "Testing" your app which doesn't require Mac, however if you already know how to do so and the purpose of you reading this tutorial is only to upload your app to the app store then go to the

    Final Step

    and skip

    Step Four

    Step Four : Installing your App to your iOS Device for testing

    Very simple and short really,

    First download the Build from IntelXDK

    Download iTunes and Install it

    Plugin your iOS device to your PC

    then go to iTunes and sync your App from iTunes to your plugged iOS device

    Now you can run your App on your iOS Device for testing

    Simple as 1,2,3

    Final Step : Uploading your App to the App Store & Configuring your App Metadata

    The final step, uploading your App to the App Store, well you need a Mac for this, as the entire process below has to be done with your Mac.

    Uploading Your App to Your iTunes Connect

    Go to your Mac

    Download your game .IPA file that you compiled with Intel XDK to your Mac ( Intel XDK should sent you a link to download your game build to your email that you registered with Intel XDK, open up that email inbox and download it from there )

    Save the .IPA File in a specified folder (I usually save it into my Mac Desktop)

    Then, go to iTunes Connect (In your Mac) https://itunesconnect.apple.com/

    Log in with your Apple Developer Account and click "My Apps"

    Then you wanna add a new iOS App which is located at the top left of the page under "iTunes Connect"

    Fill in the fields "App Name, Version, SKU ID, Primary Language"

    The Bundle ID has to be the bundle ID that you created previously

    Once you have all of this filled in, click "Create" and it should take you to the page where you have to fill in all of these information. Seems like there is a lot to do, go through them, they're not hard to understand it should take you about 15-30 mins to fill up all of these informations, if you have any questions about these, just drop me a PM or reply below.

    Once you have all of the information filled up

    Go to "Versions" Tab, scroll down til you see this "Submit your builds using Xcode 5.1.1 or later, or Application Loader 3.0 or later."

    Click "Application Loader 3.0" and install it in your Mac

    Once it's installed, open it up

    Log in with your Apple Developer Account

    Then click "Import Your App" and you wanna click on the .IPA file that IntelXDK compiled for you

    Verify your app information here.

    Click Next til you see App Loader is uploading your app to your iTunes Connect.

    This should take 5-20 minutes depending on the speed of your internet and the size of the game, it varies.

    My suggestion is, while you wait for this to upload go back to your iTunes Connect, take a look at the Informations that you have to fill in.

    I'll give you a little bit more detail about the fields that are required to be filled in.

    Screenshots

    Minimum of 1 screenshot, but I would suggest uploading all 5 of them just so that you can attract people to download your game. If you want people to download your game, my advice is, the FIRST SCREENSHOT has to attract their attention.

    You might be wondering what the resolutions are for these, well, worry no more.

    Here's the link to it.

    https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Appendices/Properties.html#//apple_ref/doc/uid/TP40011225-CH26-SW2

    Name (Your Application Name)

    Description (If the description is not related to your App, it will be rejected. For instance, I got my app rejected the first time, because I wrote "Paypal payment feature will be added" in the description box.

    Keywords (The words for people to search your app)

    Support URL (If you're too lazy to create a website, I would suggest creating a facebook page or twitter account for your game)

    App Icon (Has to be 1024x1024 pixels, JPG or PNG format only & must have no transparencies)

    Version (The Version to be displayed in the App Store, I am not sure if this has to match with the version of your binary build, but I always put the same version like the binary build)

    Build

    If application loader finished uploading your binary you should be able to see the "+" button right next to the word like this picture below

    Click on it then choose the build that you want to submit to the app store.

    Once you are done with the metadata information of your app and you are sure that you want that build for submission, click "Save" and then "Submit for Review"

    That's all to it. Other than these, if you have any questions related about the submission of your C2 Project to the App Store let me know below or drop me a PM.

    Good luck for your game and I'm hoping it will be a huge success to you.

  • Rable i managed to get the IAP to work using Phonegap IAP from cranberry. Thanks for your response though...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • caiocesar use MySQL database & create a login system like "username/password"...

    If you don't understand about MySQL (which I don't) there is another simpler way to set up a login system, which took me just 1 hour to understand the whole concept. With the help from rexrainbow (plugin creator) & jomo (tutorial writer), rexrainbow made a login system plugin which is easy to use, it is powered by Parse. Here is the tutorial to it by jomo

    https://www.scirra.com/tutorials/1455/p ... rse-plugin

    As for your question "How would your game know the information that the player already purchased the product"

    In the Parse database plugin that rexrainbow created, there is an option where you can store a player data. So for an example if a player already purchased your One-Time Purchase product to unlock all the other features, levels, characters, etc. You should store the value of that player to "1" for example and then save it to that player database and then update that global variable on the "start of each layout" or "every tick" to the value that is saved to that Username.

    And everytime the game runs, if the global variable is "1" (which is the value that is stored in the user database), then the game will unlock all the features, levels, characters, etc.

    It's kinda complicated to understand, like I said, one step at a time, if you don't get what I mean, eventually you will in the next few weeks if you keep doing what you're doing.

    No problem, I know where you're coming from, 2 and a half months ago, I never thought I could be at the stage of where I am at right now, but because I kept learning and hours of practice doing this everyday, I made it this far to almost releasing my first game on the App Store, its a tough challenge but once I'm done, I'm pretty sure the achievement feeling that I'll get out of this would be beyond the limit.

    I'll also write a tutorial on "Uploading your iOS Game using IntelXDK to the App Store" once I'm finished with my project, because most of the tutorials out there for iOS to upload to the app store are outdated and they're not specific enough.

  • caiocesar I understand where you're coming from, I was in your stage about 2 and a half months ago. I don't have any programming skill, but 2 and a half months should be enough for you to get to the intermediate level of understanding the knowledge of construct 2, ways to get your app to the google play store or any other platforms.

    Yes it is possible to get your game on the google playstore, I believe the reason why you can't find this option under the "Export Project" section is because you need to have at least a "Personal Construct 2 License" which can be purchased at the store.

    As for the "Pay for Full version" Button, there are two logics that I can think of...

    The first logic is, whenever players tap on the "Pay for a full version" button, you can code under one of the event sheet to open up the "Link" for the "Full version" app on the device browser.

    The second logic is, the game itself already have the full version but it is locked, and it can only be unlocked once a player buy the "Full Version" product (which is a One-Time Purchase product). So whoever buys the product, you can start coding for example

    Add Global Variable with the name "Premium" set 0 as default

    If player has the "Full Version" product set the global variable "Premium" to 1

    Then you can compare this global variable if it is set to 1 "Unlock all feature of the game". Something like this.

    If you don't understand don't worry, keep learning, there are many tutorials out there, use GOOGLE if you can't find a tutorial or use the search textbox on the forum to help you, if you can't find any, feel free to ask me, I'll be more than happy to help.

    My tip for you is this : Keep believing and don't give up, if you really want it and you work for it, you'll find a way to get through it. All the best mate.

ondraayyy's avatar

ondraayyy

Member since 9 Mar, 2015

None one is following ondraayyy yet!

Connect with ondraayyy

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies