[PLUGIN] Paster

2 favourites
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • Very useful plugin. Thanks man!

  • R0J0hound where i must copy the plugin ?

  • delgado

    Just drag the c2addon file into C2's window and it should install.

  • Hi,

    I tried the example capx and get this:

    <img src="http://i1220.photobucket.com/albums/dd443/gonzdevour/pasterbug_zps68371dd8.jpg" border="0" />

  • gonzdevour

    The error is from pasting the canvas onto itself which now isn't allowed. Initially this was permitted by the runtime but it's an edge case that doesn't work on all exports so a more recent release prevents it from happening and throws the error.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • like he says just drag paster in c2 windows and it will INSTALL. I have done it

  • R0J0hound

    Anyway we can get Paster to be able to save to a PNG and Base64. I'm working on a Avatar face maker, but the C2 screencap is overkill on size. Paster is perfect for the sizing and final output.

  • jayderyu

    The plugin has a .imageUrl expression to get a link to the image and you can then download it using the "invoke download" action of the browser object.

  • My error. Didn't notice the expression. :) you rock :)

  • I noticed that in the paster plugin the alpha doesn't seem to be retained properly when getting an image from the .imageurl expression. Here's a capx to demonstrate: www.amirai.net/bugs/canvas_and_paster_bugs.zip

    Drag the mouse in the top left quadrant of the screen to paste in the canvas plugin and show the result of the .imageurl expression on the right, and do the same in the bottom left for the paster plugin. The result has a dark border in the transparent area around the pasted sprites.

    Also, there appears to be a bug with the canvas.alphaAt expression as well (the fourth number in the text object). It only seems to return 0 or 1.

  • Arima

    Fixed, just re-download the plugins. ".alphaAt" wasn't correctly implemented and the other problem was an issue of pre-multiplied alpha.

  • Sweet, they work great now. I noticed one more problem with paster, though - when pasting a sprite, it doesn't seem to take opacity into account if the pasted sprite has a shader effect (I tried blur horizontal, radial blur and tint), so a pasted sprite with an effect always pastes like it's at 100% opacity.

  • I run the demo capx and get this message..

    <img src="https://dl.dropboxusercontent.com/u/1685424/Capture.PNG" border="0" />

    Using the latest beta 158.2

  • spongehammer

    Pasting a paster object to itself is no longer permitted by the runtime.

  • Hi,

    I've been working with the Paster plugin to create a fancy pageflip animation when I came across a bug when using spritesheeted images with Canvas2d instead of WebGL (the current project required it).

    The bug itself is very minor, but it took me some time to find the culprit! The offset of the frame in the spritesheet isn't set correctly (when using canvas2d).

    I'm too new to post links or PM you, so I'll type it out. I've added the underlined code to fix the problem.

    Runtime.js line 595

    if (sprite && sprite.spritesheeted)

    {

           this.points[0].x=x1;

           this.points[0].y=y1;

           this.points[0].u=sprite.offx;

           this.points[0].v=sprite.offy;

           this.points[1].x=x2;

           this.points[1].y=y2;

           this.points[1].u=sprite.offx + sprite.width;

           this.points[1].v=sprite.offy;

           this.points[2].x=x3;

           this.points[2].y=y3;

           this.points[2].u=sprite.offx + sprite.width;

           this.points[2].v=sprite.offy + sprite.height;

           this.points[3].x=x4;

           this.points[3].y=y4;

           this.points[3].u=sprite.offx;

           this.points[3].v=sprite.offy + sprite.height;

    }

    Hope this helps!

    EDIT: Also, thanks so much for this plugin, it's awesome!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)