Mikal's Forum Posts

  • Glad you solved your problem and this was such a cute game for your kid, really heart warming and nicely done. Some of the eggs drove us crazy, but my older son and I also finished it! Very clever hiding!

  • A quick sanity check, if using chrome check out:

    chrome://settings/

    Go to 'Advanced' -> 'System' -> 'Use hardware acceleration when available' and check if it's enabled.

    • Upload gif to imgur.com
    • On imgur.com, click on gif
    • Copy 'Original GIF Link'
    • In forum post create the following tag with the GIF link:
    • [im=https://i.imgur.com/bHH3ae3.gif] (replace 'im' with 'img')
    • Save post.
    • Go do something else.

    Example below:

  • Try this, there's not 'one true answer' in the thread, just lots of tips to look at and try out:

    construct.net/en/forum/construct-3/general-discussion-7/iphone-display-problems-132147

    Letterbox Scale is described here:

    construct.net/en/tutorials/supporting-multiple-screen-77

  • Nice work!

  • I just use 'Auto-fit' and 'Letterbox Scale'. However, for the best fit, there is a lot more discussion in other forum posts (especially with regard to newer iPhone notch and scaling.)

    In terms of permissions, my game did not need any additional permissions, because it was not using services or camera (just single player experience without sign in or leaderboard.) Of course, you need the usual Apple certificates and provisioning profiles to deploy to a phone or Test Flight or the App Store.

  • My experience:

    • Using Xcode 10.2.1 on iMac 10.14.4
    • Iphone X with iOS 12+ connected via USB
    • Download xcode project from C3 (cordova with xcode option)
    • Change Xcode Project Setting to 'legacy build'
    • Many warning about deprecations, etc. on loading C3 project into xcode.
    • Add my provisioning to the project
    • Clicked run and C3 app appeared on my iPhone.

    Some caveats - I find that generally, effects don't always work well on iPhone, sometimes perf issues, sometimes issues if you are using parameters in effects that require knowledge of true screen resolution (depending on scaling modes, the retina display can be running at 2X of reported resolutions.)

  • AllanR nice explanation, well done. Sofa_King here's an example project of the method I showed (though that simplification by mekonbekon looks very nice also.)

    https://sendgb.com/DRV8esgk4zA

    Here's a test of 1000000 iterations, looks reasonably well distributed (though I was just summing and averaging, not counting 'combinations'.) Average should trend to 1.5 for this number array.

    Good luck!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • Shuffle array function below. Uses new 'beta' function feature, but should be easy to translate to older function or just plain events.

  • Have you checked what error do you get in the developer console? Try: DevTools can be opened with keyboard shortcut F12 on Windows and Linux or ⌘+⌥+i on Mac.

  • hopeslicer - could you please add a quick summary of what method worked for you in the end - for other devs looking at using worker scripting?

  • The same API (c3_callFunction()) also calls built-in functions.

    Thanks, that's great.

  • Ashley - along similar lines, how can we call the new built-in functions from the JS C3 SDK?

  • SpaceTime Effect with example.

    Addon