Prominent's Forum Posts

  • Hm.. but the issue is that it isn't clearing the paster object when that event is first. It draws the canvas to the object but the previous image isn't cleared.

    https://1drv.ms/u/s!AhHSZHEulqh_gWVgeYYDfLejkXNJ

    There's an example of the flickering.

  • I'm using canvas2d though, not webgl, and I want it to be filled with a copy of the canvas.

    What I meant is that it doesn't clear at all if it is above. It just loads the texture without clearing first.

    So for some reason I have to clear it at the very end so that it is cleared in the beginning of the next event cycle.

  • I managed to get the effect I wanted, but what I found weird is:

    • every tick

    + load texture from canvas

    + clear to rgba(0,0,0,0)

    If I put the clear above the load texture, then it won't clear it. Some reason it only clears if you do it last. This happens if webgl is disabled (I haven't tested with webgl enabled at all yet).

  • I did that, but it doesn't flip it.

    It has negative width, but the image is drawn unflipped.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think what happens is that, it doesn't runs the actions in the correct order.

    I paste object and then mirror/rotate, but it acts as if the mirror/rotate was done before the paste.

  • There seems to be a bug when paster object has negative width and angle set. There is flickering in the non-rotated and non-mirrored area (where it'd be if it weren't rotated or mirrored).

    I am clearing and resetting angle/width before pasting, so it must not be drawing/clearing the correct areas.

  • edit: nevermind. I had to put paster object behind everything.

  • How do I copy a section of the layer?

    I tried copying the canvas, but it is the full window.

    edit: Is the only way to copy texture to one paster object, and then paste into another?

  • also.. It would be most useful to have separate scale values for Width and Height.

  • Problem Description

    A negative value in layer/layout scale won't render scene even though everything is scaled correctly.

    Attach a Capx

    https://1drv.ms/u/s!AhHSZHEulqh_gWRrHPP_cbb-zkvY

    Description of Capx

    -1 layer scale.

    Steps to Reproduce Bug

    • run debug and check objects to see they are negatively scaled, however don't render.

    Observed Result

    nothing rendered.

    Expected Result

    should render flipped/mirrored

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    vista sp2

    Construct 2 Version ID

    r227

  • there's no way to flip or mirror the canvas. I was hoping there'd be a way. Am I overlooking something??

    I want to copy a layer and flip/mirror it.

    I've tried setting width to negative, and it still draws canvas as unmirrored.

  • I remember when I last ran it I had to right click the file and go to properties, then permissions and enable execute permission before it will run.

    also, some Linux distributions lack libudev.so.0 which is required to run node.webkit apps

    I don't know if that is the same case for nw.js

  • I want to do this too, but I can't figure out how.

  • How do I add newline in spritefont text property (not using any events).

    You know how yo can set the initial text of a spritefont within its properties, but how do you add a newline?

  • what happens when you try running it?

    I've ran stuff on linux in a vm, but the webgl effects would not be working.