Mikal's Recent Forum Activity

  • lucid thanks for the note on AssetManager SDK, was waiting for the fix before I moved my project over which has also uses that API. Also thanks for all the work on the plugin from an active C3 / Spriter user.

  • Thanks for this, it is nice to have a good class example. I hope that we start building on these and have a repo somewhere to easily share them, as we do for C3 addons.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for this, nice clean example. With later versions of C3 we can also use the new 'Wait for previous actions to complete' action and put it all in one block with a few 'Wait..' actions after the snapshot and screenshot async actions.

  • Thanks for the C2 effects import feature, it works well.

    After import, typically I have to do a couple changes to the effect shader code to make it compatible with C3 uniforms and sometimes C3 sprite sheeting, but it's not too difficult.

    Here are some notes on C2 effect porting, based on some of my recent experience:

    construct.net/en/forum/construct-3/plugin-sdk-10/dropshadow-effect-ported-c3-142753

  • Ask, and ye shall receive.

    It is a tool people have found useful, so I've stickied the IDE thread :)

    ThanksLaura_D!

  • You will love this tool...

    construct.net/en/forum/construct-3/plugin-sdk-10/c3ide-construct-plugin-ide-141201

    It will also load existing plugins for you to start with (and comes with some templates.) It includes a webserver built in for developer mode. It creates .c3addon for release. It makes everything so much better when creating a plugin. It even creates templates for doing c2 conversions (you usually need to do more JS work to complete the conversion, due to SDK changes for c3 runtime.)

    I wish that Nepeo or other mods would sticky the c3IDE thread in this forum, it's so useful for plugin development.

  • Ah, learning slowly but surely, this works in preview:

    async function go() {
    	var projUrl = ''
    	projUrl = await c3_runtimeInterface._GetLocalRuntime()._assetManager.LoadProjectFileUrl('j.json')
    	var loadedJson = {}
    	loadedJson = await	c3_runtimeInterface._GetLocalRuntime()._assetManager.FetchJson(projUrl)
    console.log(loadedJson)
    }
    go()
    
  • Ashley

    I'm trying to use the AssetManager, but I still get a CORS error during preview.

    Did I read your below message incorrectly? Does fetching not work at all during preview and AssetManager does not help for fetching during preview?

    I have this in my events (and j.json project file in the project.)

    + System: On start of layout
    -> Run JavaScript: var loadedJson = c3_runtimeInterface._GetLocalRuntime()._assetManager.FetchJson("j.son")
    console.log(loadedJson)
    

    The above fails with a CORS error during preview.

    Thanks for the help.

  • Thanks Ashley, I will take a look at the AssetManger SDK.

  • I am integrating the face-api.js into C3 as a plugin, but I am having an issue with preview. It works fine with the export of game to HMTL5 and hosted (locally or on a remote server.) It also works fine when exported with Electron and run as a desktop app (https://electronforconstruct.armaldio.xyz/).

    The issue occurs when the JS api requests a file via a fetch URI (that's included in the root of the plugin and the root of the exported HTML5.) The error on the Chrome console is:

    Access to fetch at 'https://editor.construct.net/r151/preview/ssd_mobilenetv1_model-weights_manifest.json'
    from origin 'https://preview.construct.net' has been blocked by CORS policy:
     No 'Access-Control-Allow-Origin' header is present on the requested resource.
    If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch
     the resource with CORS disabled.
    

    However, preview fails any suggestions? Is it possible to enable CORS between preview.construct.net and editor.construct.net or is that a security issue for construct.net?

  • If you are only looking for a reflection you could try my reflectY effect.

    construct.net/en/make-games/addons/82/reflecty

    Comes with an example. Place the sprite with the effect higher in z order than anything you want to reflect. Offset parameter must be set based on sprite location. Gradient fade parameter can be set to 0 for no fade.

  • Includes above example. Creates an Alpha / transparency gradient across an image vertically with a start, stop value and a power to apply to the gradient.

    construct.net/en/make-games/addons/289/gradientalphavertical

    Created using the always excellent c3IDE:

    construct.net/en/forum/construct-3/plugin-sdk-10/c3ide-construct-plugin-ide-141201

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