calminthenight's Recent Forum Activity

  • It is like that in the animations. The image size of some of your animations is way bigger than others, which makes the collision polygon bigger, even when drawn around the characters body.

    Because you are using physics it also increases the mass drastically.

  • I'm looking into ways to efficiently access an images pixel coordinates and RGBA values. My js knowledge is way out of date and I have never used used C3's js scripting.

    Before I go too deep into trying this, I was hoping someone could give an indication of whether it would work in C3 or not?

    MarvinJ is a pure javascript image processing framework:

    Script here: marvinj.org/releases/marvinj-0.7.js

    The code I think would be useful to do an Alpha comparison per pixel is demonstrated here:

    image = new MarvinImage();
    image.load("yourimage.png", imageLoaded);
    
    function imageLoaded(){
     console.log("(0,0): "+(image.getAlphaComponent(0,0) > 0 ? "NOT_TRANSPARENT" : "TRANSPARENT"));
     console.log("(150,150): "+(image.getAlphaComponent(150,150) > 0 ? "NOT_TRANSPARENT" : "TRANSPARENT"));
    }
    

    Any hints/tips are greatly appreciated

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Thanks dop. Yeah I already discovered the drawing canvas way when I was investigating this trying to help someone on the forum but I had hoped there would be a more elegant way to do it with data alone. I'll keep looking :)

  • Does anyone know of a way of converting pixel information from something like base64 or other to an array with pixel positions and RGBA values?

  • You do not have permission to view this post

  • It's only converted to pixel art (rasterised) if you add it as a sprite. You can add an SVG picture object to keep it as vector art. You can't animate it though.

  • If you're really that paranoid about Chrome just use a different browser. C3 is supported in quite a few.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • use these conditions, and add whatever action you want to happen.

  • You do not have permission to view this post

calminthenight's avatar

calminthenight

Member since 28 Jan, 2018

Twitter
calminthenight has 6 followers

Trophy Case

  • 6-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies