Mikal's Recent Forum Activity

  • Check for RGB match (or close enough match.)

    Say your color is MatchR, MatchG, MatchB

    Color at a point is:

    pointR = DrawingCanvas.SnapshotRedAt(loopindex("X")/DrawingCanvas.PixelScale,loopindex("Y")/DrawingCanvas.PixelScale)

    pointG = DrawingCanvas.SnapshotGreenAt(loopindex("X")/DrawingCanvas.PixelScale,loopindex("Y")/DrawingCanvas.PixelScale)

    pointB = DrawingCanvas.SnapshotBlueAt(loopindex("X")/DrawingCanvas.PixelScale,loopindex("Y")/DrawingCanvas.PixelScale)

    How close is the point color to the match color:

    distance = sqrt((MatchR-pointR)^2 + (MatchG-pointG)^2 + (MatchB-pointB)^2)

    Check that distance is less than some threshold to find a match.

    Use the project debugger or browser.log to print the values or display all the above values to the screen, so you can get an understanding of the range of values in your project.

  • Release 1.16.2 Set Slot Color, Set Slot Dark Color. Apply Slot Color, Reset Slot Color. Set animation start (beginning, current time, current ratio). Set animation time/current ratio. Deprecate Set custom color attachment.

    For Dark Color to take effect, the slot must have 'Tint Black' enabled.

  • Did you look at the code I posted above? It shows how to translate color to tilemap.

  • I've done this with video before (and changed it into a tilemap which I could use for a platformer.) Basically what dop2000 said, paste video to canvas, take snapshot of canvas and translate color to tilemap for collisions. In my case I also did some 'chroma key' with threshold to make it a little easier to use.

    Here's an old template I used to play 'streams' of a mario video (there's more events than you need just for the video, because I was playing with some other ideas.) If you know JS, you can also do it in scripting and it will probably run a bit faster.

    Here's an example with a 'let's play', the green color is the tilemap w/o the video.

  • Congrats on the release!

  • I have an effect that does a kind of shatter, however it's not a 'physics' or 'collision' simulation, just a visual effect (it does not change the collision box or create new sprite objects.) The examples you show above all look like they involve physics and collision.

    I've used LiquidFun w/ an image and it works well, there are examples of this in the pointer that Newt posted.

    If you are interested in just the visual effect, it's here:

    kindeyegames.itch.io/c3-shatter

  • You are welcome. Good luck with your project.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try using a separate ElementQuad _object_ for each canvas.

    Here's an example:

    gofile.io/d/OaCMdq

  • Do happen to know JS? If I was looking to do this in C3, I probably would just grab the JS library from: github.com/y-lohse/inkjs and include it in a C3 project and use the C3 JS integration to call scripts, etc.

    Here's an example C3 project of the most barebones functions to walk through the sample story.

    gofile.io/d/iNBl11

  • Looking in your project it looked like you are using an element ID that does not exist? 'ElementQa' for ElementQuad2?

  • You can experiment with using my ElementQuad plugin. Here's an example. It will allow you to put your Babylon canvas anywhere in the C3 layers / order (and also add effects to it.)

    construct.net/en/forum/construct-3/general-discussion-7/babylon-3d-simple-js-147886

    The head is a Babylon canvas changed into a texture for C3 ElementQuad.

    Check perf with your platforms of interest.

  • For quite a while now, webkit on iOS has not supported GetUserMedia. Here's the thread on it:

    bugs.webkit.org/show_bug.cgi

    We keep hoping the next iOS release will enable it, but no luck so far. If you find a solution, please post it here (or in that thread.)

    One idea is to try to find a cordova plugin.

    This may or may not work (there are some methods to capture.)

    github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview

    github.com/apache/cordova-plugin-camera

    Also QRScanner cordova plugin:

    github.com/bitpay/cordova-plugin-qrscanner

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