Mikal's Forum Posts

  • R0J0hound Thanks for this cool demo!

    Just to do some learning, I tried porting it to the c3 runtime (the previous *.c3p only worked in the c2 runtime for me.) I got the demo semi-working with the c3 runtime. The main 3d objects render, but there are still some webgl errors reported on the console, and other 2d sprites are not rendered, so it's not complete.

    I had to:

    - Update some C3 SDK calls and change some functions to async (in JS and execJS events)

    - For example: image.src = await window.myBigB._assetManager.LoadProjectFileUrl(url);

    - Use new pointers for object draw function and glwrap (SDK changes)

    - Update some of the mat4.* calls to the later mat4.* api

    If you want to play with the c3runtime version (and try to fix it, so there are no errors and other elements are rendered!) check it out here:

    sendgb.com/upload

    FYI here's the error I see:

    GL ERROR :GL_INVALID_OPERATION : glDrawArrays: attempt to access out of range vertices in attribute 0

  • One possible way: use Playfab for server side, use Playfab (paid) plugin to interface to C3.

    construct.net/en/forum/construct-3/plugin-sdk-10/construct-master-collection-139046

    playfab.com

    I am using both for game event tracking, unique player login, and a simple leaderboard for my C3 game and it's working well.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How to post imgur or images from your website? I only know how to post giphy or upload an image which places a grey border around the image.

    Lumicreative.com

    Created a post that describes how to do this:

    construct.net/en/forum/construct-3/general-discussion-7/posting-imgur-gifs-forum-143406

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

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