Mikal's Recent Forum Activity

  • New C3 effect to have fun with, it's pretty versatile, so if you do something new with it, please share in this thread, so we all can learn together!

    construct.net/en/make-games/addons/334/godrays

    It was ported from medium.com/community-play-3d/god-rays-whats-that-5a67f26aeac2. Which in turn is based on: developer.nvidia.com/gpugems/GPUGems3/gpugems3_ch13.html

    Some examples (the Necromancer one is based on a project from TackerTacker):

  • I think the website has the details. I bought the full collection myself when it first came out.

  • Check out this (paid addon):

    constructcollection.com/construct-mobile-notifications

  • Thanks to Ashley for pointing out Touch End vs Touch Start, which helped me in my orientation project too! Now I don't have to do that ugly hack.

    So I think you might just need a one time call based on Touch End and then do a simple JS call to: Tone.context.resume(); You can still be lazy :)

    This works for me on mobile:

  • This is not a solution, but an interesting effect and I wonder how to use it...

    This is what I see:

    - Start remote preview on iPhone in Portrait

    - Once loading in Safari, rotate iPhone to Landscape

    - The address bar goes away.

  • Try Construct 3

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

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

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

Mikal's avatar

Mikal

Early Adopter

Member since 22 Apr, 2016

Twitter
Mikal has 112 followers

Trophy Case

  • 9-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x10
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

21/44
How to earn trophies