Mikal's Forum Posts

  • 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!

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • Procedural transparent warp effect, ported andrewray's effect from shaderfrog.com/app/view/708 to C3.

    Addon with example.

    Created using the excellent c3IDE plugin development tool.

    Tagged:

  • Note that to handle larger xSkew values, you may need to increase the transparent areas around the sprite image, otherwise the shadow will clip. This _does_ have performance implications, it creates a larger sprite to render (even if the majority of the added area is transparent.)

  • Great work, updating my older plugins will so much easier now, much appreciated.

    Nepeo Ashley - can we get this post pinned in this forum? It's as essential as Blackhornet's C2C3 converter for C3 plugin / effect creation.

  • Use note, when mirroring sprite, also mirror 'xkew' to match, otherwise perceived light source will incorrectly feel like it's switching from left to right or right to left as mirroring occurs.