Mikal's Recent Forum Activity

  • I also usually add extra instance related functions to instance.js.

    However, if you have a plugin which shares information / functionality between instances, I will also add properties and functions to type.js.

    I have also created separate '3rd party' files which contain classes that I use in a project (for example in the Spine project, I have a class that batches drawing all the instances. The class also contains a list of all instances.) If you do a 3rd party file post r226, watch out for the recent module globaThis/import/export changes.

  • This is also what I do for a high score leaderboard. One column/instance for name and one column/instance for score. It also allows for you to more easily do formatting like center or right / left justify per column as needed.

  • Thanks for the update!

  • piranha305

    One suggestion/request - update the c3IDE plugin code generation to include the new SDK boilerplate to handle the new C3 minimization (add the const C3 = self.C3; below in each JS file).

    "use strict";
    
    {
    	const C3 = self.C3;
    
    	const tempQuad = new C3.Quad();
    	
    	C3.Plugins.MyCompany_DrawingPlugin.Instance = class DrawingInstance extends C3.SDKWorldInstanceBase
    	{
    		constructor(inst, properties)
    

    Other newish example plugins here:

    construct.net/en/make-games/manuals/addon-sdk

    If you want me to enter this on the c3ide github instead as an issue, let me know. Thanks as always for this great tool.

  • I realized that if I go ahead and use module import/export, my addon will not be backward compatible to pre R226, so I'm going to continue to use the globalThis method for now, until the module mode goes into the stable branch.

  • Have you already tested using UserMedia and pasting to Drawing Canvas and then using the Drawing Canvas snapshot to check for the color/area?

    If you know Javascript, there is another method you could work with. Let me know if you know JS and if that would help.

  • Thanks for the tips Ashley, I am using some 3rd party external js in the Spine C3 addon (specifically the 'spine-ts' js library/distribution) and it does the 'sloppy' global declaration for the spine library. For now I changed the definition to globalThis.spine, instead of a top level 'spine' and it is now working again.

    I'll look to update this and the rest of the addon to 'modules' in the future.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On Animation Finished and On Any Animation Finished are working in my projects. Do you have a test project for me to review?

    If the test project is private, contact me on the Construct Community Discord and send it via DM.

  • For the bbox, you need the Spine Slot name and the Spine BBox name. Check in the spine editor or in the Spine JSON what the slot/bbox names are.

  • Some more work on Babylon 3D Model Sprite plugin, added default Animation Blending and isPlaying, onAnimimationFinished ACEs to handle transitions. Contact me on Construct Community Discord if you want to Alpha test (and have a 3D model to test with).

  • Nice work, nice to see these type of work w/o plugins (and just some effects). Keep up the good work, looking forward to the game when it releases, the demo looked good.

  • This looks similar to a 'smoothstep'

    en.wikipedia.org/wiki/Smoothstep

    Live example / formula:

    desmos.com/calculator/xykhidbkbg

    For your case you can do (1-(formula))*1000 to get your range and adjust a and b to match your limits.

Mikal's avatar

Mikal

Early Adopter

Member since 22 Apr, 2016

Twitter
Mikal has 103 followers

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • 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

19/44
How to earn trophies