Toby R's Forum Posts

  • There are many games in App Store I made myself for either me or my customers. I've never encountered any problems with approval due to fact it's an HTML5 game.

    They can reject for not having "restore purchases" option and things like that but I never heard of rejection due to the app architecture. Are you sure that's the case or is it your guess?

  • JhomasJhomas have you tested your plugin with the exported project? Objects names are lost after exporting.

  • I found Cocoon.io to have the best performance and the most stable (and up to date) plugins. There are a lot of tutorials in the Internet, but if you don't want to waste time searching for the info you may want to buy the complete guide ebook written by Andreas here https://www.scirra.com/store/ebooks/qui ... ebook-1893

    It covers everything and costs pennies - I always recommend it as it's really worth the price.

  • The current options are:

    Future possibility:

    • Use C3 wrapper (will be paid or you'll need C3 license)
    • Some new wrapper that will jump in XDK's place
  • Great idea, great atmosphere, great artwork - it looks really amazing, good job!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In index.html just place your code to be accessible globally

    In C2 just assign it to a variable or just get the value directly

  • Update

    After some investigation I realize that the object needs to finish the initialization process first and then it can be destroyed safely.

    As it's understandable, I would still encourage to update the plugin so if the object gets destroyed before the initialization was successfully finished, it should force the next created instance to retrigger the initialization process from scratch. Basically one boolean variable should do the trick.

    Cheers

  • Uploaded version 1.2. It has exactly same set of ACEs, there's just a small fix for better compatibility with Spriter's C2 plugin.

  • Hi lucid could you please take a look here ?

    Thanks

  • NOTE

    This is most probably Spriter's plugin bug, not C2 itself, yet I thought the bug section fit's the best to report that. lucid could you please try it first yourself before we bother Scirra to take a look on this one?

    Problem Description

    Once the SCML instance gets destroyed, it is not possible to create new instance of this object.

    Attach a Capx

    Download test capx here

    Description of Capx

    Capx has 2 event's. It destroys the SCML instance on start of layout. Then with every mouse click it should create the SCML object, but it does not. If you disable the first event (destroying on start), it works.

    BTW: it's not related to "On start of layout" but purely to destroying the instance.

    Steps to Reproduce Bug

    • Run the project
    • Click LMB on the canvas (nothing will appear)
    • Remove/disable event no 1
    • Run the project
    • Click LMB on the canvas (instance will appear)

    Observed Result

    New instance does not create once any of this object was destroyed earlier.

    Expected Result

    Should be able to destroy and create instances any time.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Win 10

    Construct 2 Version ID

    r244

    Additional note

    This issue wasn't there with earlier version (plugin release 7/9/2016) of Spriter's C2 plugin. It started after I updated the plugin to the newest one.

  • IMO currently Cocoon.io is the best you can get for C2 because:

    • Canvas+ has better performance for dynamic games than Webview
    • Cocoon has a set of official C2 plugins (IAP, ADs, etc) that are working and are maintained by the team itself
    • You still can use Cordova plugins and make your own if needed
    • Output APK is small in size

    There are some cons as well like:

    • You can have up to two projects for free there (still you can remove them and reuse the slot)
    • They add their own splashscreen at start of the app. Still it's really a decent looking one.
    • With Canvas+ some C2 features that are DOM or Browser related do not work, but there is always some workaround
  • Why do you want to build your project again if you did not change anything Phoenixbowman?

    Anyway it is possbile that the code which worked earlier will not work right now even if you haven't changed a single event in the capx. For instance if you use some third party library (Cordova IAP, ADs, Barcode, or any other feature), the library on github can be deprecated (not compatible with newest Cordova version).

    There can be obviously other reasons as well. Just saying that the code you made is just a part of the end-product so you should think of other parts that could have changed in a meantime as well.

  • Updated the original post here. I made and released [MM_Preloader] plugin.

    With this plugin you can preload objects, custom items and even layouts which allows to make any loading screen including loading screen between layouts with progress bar and animations. It does not fake preloading, it is a real preloading and it does not "mask" the screen freeze, but it gets rid of it.

    Layout preloading is a feature that has been requested many times in last several years. Now it's finally possible to do it in C2.

    Quick example:

    If you have any questions regarding this plugin please use this thread:

  • Overview

    v1.5.1 update (2017-11-11)

    • * Fixed a bug where in some cases the preloader was not preloading objects after toggling between the same layouts or unload/preload sequence.

    v1.4 update (2017-08-17)

    • Plugin is now compatible with C3 (c3addon added to the pack)
    • Fixed an issue where plugin could have a problem with detecting if an object was already preloaded or not in certain cases

    v1.3 update (2017-07-29)

    • Lazy preloading added. Preloads with specified interval. Potential use case: preload next layout while playing the current one

    v1.2 update (2017-06-27)

    • Spriter SCML objects compatibility adjustment

    What is MM_Preloader?

    It's a plugin which handles any type of preloading:

    • Layout preloading - preload elements of the next layout to get rid of layout transition lag
    • Layout initialization - hook any custom functions to preloader: AJAX, import, multiplayer connection, required calculations, etc.
    • Lazy preloading - slowly preload elements of the next layout while playing current layout
    • Loader layout - game initial loading screen

    Does this plugin just calculate the % or really preload items?

    It is a real preloader. With a single action MM_Preloader finds and preloads (loads to memory) all Sprites, Tiled Backgrounds, SpriteFonts, SpriteFonts+, TileMaps and even Spriter objects of the selected layout. You can also preload custom objects or actions.

    How do I use it?

    Simply add items to the preloader's list and trigger Start action. Plugin will automatically preload and calculate the current preloading progress based on number of added items (and their current preloading state). While it's processing you can use expressions to fetch current state of preloading.

    What can I preload?

    Really anything. The best feature is the ability to preload assets of layout you are switching to, so it's possible to make a preloader between two layouts (not possible by default in C2).

    You can use it on Loader Layout and easily make the initial preloader of your app.

    It is also possible to add custom items which means that you can preload sounds, AJAX fetching progress, Ads, multiplayer connection, etc.

    Can I make visual preloading?

    You can make any visual appearance you want. MM_Preloader does not draw anything, it just preloads and calculates the progress. Based on the current progress you can make any visual custom preloader you need.

    Warranty

    This plugin has lifetime warranty.

  • Hi GIMO2017,

    I sent you a private message. You won't be able to reply directly to this message since you don't have enough reputation points on this forum yet, but I left my contact details there.

    PS. To read the private message, please click the "PM" button on the top right corner of this page.