Stormtrooper's Forum Posts

  • Hi everyone!

    My and my team's app Ditched - Save the Sheep, is finally live for the iPhone. This game was made totally with Construct 2! You can download it here, it would mean a great deal to us! ^^

    https://itunes.apple.com/us/app/ditched ... 25931?mt=8

  • Hi guys,

    I've been working on this tutorial in my spare time, its a Work In Progress at the moment, but maybe it can already help some people trying to get their game into the AppStore. I will try to update this frequently over the next few weeks. Any feed back is highly appreciated.

    **************************************************************************************

    ADD PICTURE

    Here is a very straight forward way to get your .capx file running as an XCode app. Just one rule, if something doesn't make sense, please first Google it yourself and try to find and teach yourself how to do it, nothing compares to or beats learn-by-doing in my experience, but if its really impossible you can contact me or comment below (preferred).

    Prerequisites that you absolutely need, NO exceptions:

    1) A Construct 2 private or business license (especially if you hope to make money with your app): https://www.scirra.com/store/construct-2

    2) Your game, it can be finished or a testing version, but must be a .capx file

    3) Some type of Mac computer (very important, if you don't have one, ask friends)

    4) Some testing device(s), the more the better, with possibly current supported iOS versions (extremely important, do not submit anything before thoroughly testing it yourself)

    5) XCode installed on the Mac: https://developer.apple.com/xcode/downloads/

    6) Apple License: https://developer.apple.com/programs/start/standard/

    7) CocoonJS account (my tutorial, so export it my way or figure it out yourself with Ejecta or PhoneGap, but CocoonJS > others): https://sso.ludei.com/ and sign up

    8) Icons and Launch images. 1 AppStore Icon of 512x512 pixels, and then a whole lot of app launch icons: 320x480, 640x960, 640x1136, 768x1004, 1536x2008, 1024x768, 2048x1496. (Note: if you think your game loads fast, simply create these launch screens as black boxes.)

    Let's Get Started

    After all the prerequisites are met, you will have everything necessary to create a fully working Apple iPhone or iPad app. First, let's open our game .capx file.

    Your Game Export Process

    So you've assumably created a wonderful game, which in itself is a great and rewarding experience. Congratulations! I mean it!

    Your dream has become a reality thanks to Construct 2 and you want to share this vision with the whole world, or more specifically iPhone and iPad users.

    Hopefully beforehand you looked up your desired device(s)'s screen resolutions, and limitations such as memory, app size, social feature support, IAPs, etc etc etc. In this department I cannot and will not help you unfortunately, but I'm assuming you've already done all that by yourself.

    So, open up your game, go to:

    File > Export > CocoonJS > and in the pop up select some way your sprites should be or not be compressed, and whether or not you want your code to be minified. Then hit the magic button to start exporting it somewhere like your Desktop or Dropbox. Depending on the style you are or are not compressing your sprites, this process should take 30 seconds to 15+ minutes

    ADD PICTURE

    Once the exporting process is finished, you will get a confirmation pop up and now you can safely close Construct 2. With this new folder, its time to head over to https://www.ludei.com/

    Ludei and CocoonJS

    Just in case you don't know, Ludei provides us with a very nice wrapper designed specifically for HTML 5 games.

    Sign in or sign up > click the 'DEV PORTAL' tab at the top. You should see Your Projects, and most likely its blank right now. Click the green '+ New Project' and add your project, its really simple and should be self-explainatory.

    Once its added to the Dev Portal, you can click on it to edit it. Here you will see a whole bunch of options which you will only need 3 of for Apple.

    Under 'General', give your game a name, Bundle Id (com.companyname.gamename), Version (1.0 for now), choose your Orientations, and Scaling methods. Once that's all done, hit the blue 'Update Project' button.

    ADD PICTURE

    Under 'iOS', upload your AppStore icon (the one players will press to start the game) and the Launch Images. All of them. No exceptions, even if your game is iPhone exclusive, still need iPad. You can load Optional assets, but they're optional. See what I did there? >_>

    ADD PICTURE

    Alright, all set up and happy? You 100% sure? Maybe go and double check to be really REALLY sure, because making an .xcodeproj is going to take about 20 minutes minimum. Okay, cool. Then let's do this! Go to 'Compile Project', add your zip of your game, select only Compile project for Apple AppStore (iOS), run using Canvas+ (best in my opinion for almost all games), use 2.0.0 beta compiler, accept the terms of service, sell your soul to Apple and Compile that game!! WOOOOO!! Now wait something like 20 minutes for the Ludei dudes to send you the .xcodeproj to your specified e-mail. In the meantime, you can prepare iTunes Connect to upload your final finished game. You will NEED a Mac now.

    iTunes Connect

    Go to https://itunesconnect.apple.com/ and sign in, of course on a Mac computer. Click on 'Manage Your Apps.'

    ADD PICTURE

    In the upper left corner is a blue button with 'Add New App'. Once you click on this, you will get this sentence "You have no eligible Bundle IDs for iOS apps. Register one here." Click on here.

    Creating a bundle is what all developers complain about, this is the painful process from Apple which can be complicated and tedious, and leaves a bad aftertaste in the mouth once you finish.

    I'll try to take you through the general steps. First, you need to give your game a name again under App ID Description. The Bundle ID you already created on ludei.com (its com.companyname.gamename).

    Under App Services, you need to decide what to fill in there, like does your game have IAPs or use Push Notifications? Fill all that out and click Continue.

  • This is tricky and I don't think I can really help you, but I think I know what you mean. Maybe look at those C2 examples "Infinite Runner" for ideas. Sorry I can't help anymore...

  • Try cutting all your backgrounds into smaller images, or use tiled background if you are always using the same background repeating over and over.

  • TMAJA , reinhardius , and BluePhaze :

    I did what reinhardius said and now its working as it should! Thanks a lot for the quick response and help!

  • TMAJA : check out reinhardius's answer

    reinhardius : Thanks! I will try this out tonight, hopefully it will fix the problem! ^^

  • BluePhaze :

    Thanks, but I already searched, and tried and tried for hours last night to get it to work, but seems its Universal on CocoonJS's part.

    I think I will eventually write or make a youtube video tutorial on how to get a: capx --> CocoonJS process --> Creating specific Apple files --> AppStore

    The process from Apple is nearly laughably ridiculous and complex, and I'm sure many newer developers will have no idea how to do this. Why is submitting to the Google PlayStore so easy? ^^

  • Hi guys, I'm having a problem submitting my app to Apple, they keep rejecting me because they think my app is universal, even though in Xcode I of course tacked iPhone as deployment type.

    Am I missing something during the CocoonJS building process? Is there somewhere you have to tack to build for iPhone only? For example, Gamesalad has an option to export exclusively for a specific device type. But Gamesalad is crap, I love Construct 2! Does CocoonJS only create an Xcodeproj file as universal?

    Any help is much appreciated! Thanks in advance ^^

  • iceangel & Blacksmith & PeterPlatter :

    Thanks guys!

    Here is a teaser trailer for anyone interested.

  • [attachment=1:3bmtfaf1][/attachment:3bmtfaf1]

    Hi everyone! For the past year my brother, a friend and I have been working on our first Construct 2 game. "Ditched - Save the Sheep!" is a cute puzzle game that we oriented mainly for a younger female audience, but anyone can play it. The entire game was made with Construct 2 and Ludei's CocoonJS for testing, and their developer portal for publishing.

    GAMEPLAY

    The daydreaming sheep Cotton and his squirrel buddy Acorn were walking along on a sunny day, when the sheep stumbled and fell into a ditch.

    You take control of the squirrel who operates a strong, metal claw and try to fish the sheep out of the hole. But watch out, many obstacles like magnets and evil crabs stand in the way .

    With over 25 sugary-sweet levels, and tons of acorns to collect, this game should suit everyone.

    You can download it currently only for Android here: https://play.google.com/store/apps/details?id=com.secretpotion.ditched

    [attachment=2:3bmtfaf1][/attachment:3bmtfaf1]

  • - Everything is an event, like touching the attack button will trigger a Function that does specific animations for whoever's turn it is. xoros helped me with a simple array hat gives each character a turn based on speed. Maybe i will post the capx eventually to learn from ^^

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've searched for an answer to this because I assumed someone else has tried before, maybe I just couldn't find but here's my question:

    If you make a native iOS or Android app, and have something in the game like a button, how do you make an event like Touch button > Redirect to AppStore / PlayStore? What I am trying to do is create a Lite version and paid version, and in the Lite version once the player reaches the end they should be redirected to the paid version in the stores. Can someone give a simple example for this? Thanks in advance!!

  • Another question which I should have asked earlier, does WebStorage work on iOS native apps? Or is this only for browser based games? Thanks for the reply ArcadEd

  • Hi everyone! My question today is how can I have a save system for iOS and maybe Android apps, where the game saves by itself? If you've ever played any apps you will probably notice that the after killing the app and restarting, it shows the usual logo and title screen, and all levels and progress is saved. Is there a way to do this with C2? Thanks!

  • DatapawWolf

    I was pretty busy lately, but hopefully after work or during this next weekend I can do some more ^^