Mikal's Forum Posts

  • Lastly, there is a hint in the Tone.js source code and what function to call with your button press / touch:

    ///////////////////////////////////////////////////////////////////////////

    // CONTEXT

    ///////////////////////////////////////////////////////////////////////////

    /**

    * The shared AudioContext

    * @type {Tone.Context}

    * @private

    */

    Tone._audioContext = null;

    /**

    * Most browsers will not play _any_ audio until a user

    * clicks something (like a play button). Invoke this method

    * on a click or keypress event handler to start the audio context.

    * More about the Autoplay policy [here](https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio)

    * @memberOf Tone

    * @static

    * @return {Promise} This promise is resolved when the audio context is started.

    * @example

    * document.querySelector('#playbutton').addEventListener('click', () => Tone.start())

    */

    Tone.start = function(){

    return Tone.context.resume();

    };

  • A hint here, but you need to tie that to a touch event, which I have not done yet directly in C3 (e.g. it will not work to have a C3 touch event trigger JS in my experience.

    I had a similar experience with requesting device orientation, but I made a ugly workaround which created a big button via JS that I deleted after pressed and device orientation requested (or in your case audio context resumed.)

    stackoverflow.com/questions/50281568/audiocontext-not-allowed-to-start-in-tonejs-chrome

    If you want to see that workaround, check out this: thread:

    construct.net/en/forum/construct-3/plugin-sdk-10/compass-north-sensor-c3-147808

    If you figure out an elegant way, I would be grateful to hear the details, so I could apply it to my device orientation case. Perhaps create a large screen overlay button w/ 1% opacity via JS then destroy it after touch?

  • Check the console, when I try the hosted version, I get:

    The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. goo.gl/7K7WLu

  • Been seeing this a lot on Twitter, love the art style and vibe. Will be supporting the KS. Good luck with it!

  • Is this export to apk? What is your process, using C3 to build apk or another process? Have you tried remote preview with your android device, does that work? Can you see the console output from your android device (e.g. on iOS I can see console via connecting USB to a Mac and using Safari Develop mode on Mac to view console. I think there is a similar method for Android.)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Open the Console panel to view logged messages or run JavaScript

    Press Command+Option+J (Mac) or Control+Shift+J (Windows, Linux, Chrome OS) to jump straight into the Console panel.

  • Ah, I see, thanks for the explanation. An example of what I am talking about would be to adjust the lengths to their current length, would that be possible?

    Thanks also for the pointer on Destroy, that also has a nice effect:

    (Also updated Caustic Wave effect w/ control over distortion and color of wave highlight.)

  • I am trying to figure out a way to allow elastic 'joints' to shift over time in terms of position and strength, any suggestions on how to do that?

    Here's the effect (though in 3d) that I am looking for. An elastic group getting pummeled by other objects and changing shape.

    youtu.be/GTj5iufnM3E

    Also another fun LFJS example:

  • Again, not VST, but this was interesting to me and could probably be integrated into C3 via JS integration.

    alemangui.github.io/pizzicato

  • One is being worked on here:

    youtube.com/channel/UCxYVUzTKpE8Y1vZMyvV6Xdg

  • Having fun with this and I know I have only scratched the surface! Using iPhone accelerometer to control gravity (tilting phone) and use an image to particle spawn, elastic behavior makes for a nice effect. I can see creating an image specifically for this could turn out really well.

  • It's not as direct as your example, but perhaps something with

    CreateDynamicTexture(width, height, opts)

    and

    UpdateTexture(data, texture, opts)

    construct.net/en/make-games/manuals/addon-sdk/reference/graphics-interfaces/iwebglrenderer

  • Another option is to try out a JS QR library and use C3 JS integration to add it to your project.

    For example:

    github.com/nimiq/qr-scanner

    One caution on mobile. Last I checked, iOS (as of 13.2) does not support user-media (web camera) when using webkit (e.g. iOS app or PWA.) The Apple team claims to be 'working on it.'

    It should work with Desktop Chrome, Safari on iOS and Android.

  • Great post - well done TheRealDannyyy and Armaldio!

    A few comments on my Greenworks plugin (Greengrinds.) It's free, it's an extension of the official C3 plugin. It works with nw.js and Electron (using Armaldio's Electron For Construct.)

    I added ACEs for the following Greenworks APIs: Cloud File, more Achievements, Stats, and DLC. It's also C3 only.