calminthenight's Forum Posts

  • 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

  • Glad to see you've discovered construct. There are millions of ways to create enemies, but if you want something simple just create a new sprite called enemy. Give it the moveto behaviour and use:

    Every Tick - Enemy Moveto Player

    From there you should look up some of the tutorials and templates. They can be found on the home page when you open construct. You can also search for more from there

  • You do not have permission to view this post

  • Did you have it set to enabled for all instances in the editor? Sounds like you might have just enabled it for a one.