[PLUGIN] Paster

Post your completed addons to share with the community

Post » Sat Nov 22, 2014 9:33 pm

Sweet. Thanks @R0J0hound
Image
B
9
S
3
G
1
Posts: 346
Reputation: 1,560

Post » Sun Nov 23, 2014 8:52 pm

With the new build of C2 (r189) I'm getting this error.

Uncaught node.js Error

TypeError: Cannot read property 'length' of undefined
at GLWrap_.setProgramParameters (http://localhost:50000/glwrap.js:1481:41)
at Acts.PasteObject (http://localhost:50000/rojoPaster_plugin.js:306:29)
at Action.run_object (http://localhost:50000/eveng.js:1843:10)
at EventBlock.run_actions_and_subevents (http://localhost:50000/eveng.js:929:38)
at EventBlock.run (http://localhost:50000/eveng.js:886:9)
at EventBlock.run_subevents (http://localhost:50000/eveng.js:994:11)
at EventBlock.run_actions_and_subevents (http://localhost:50000/eveng.js:933:8)
at EventBlock.run (http://localhost:50000/eveng.js:886:9)
at EventBlock.run_subevents (http://localhost:50000/eveng.js:994:11)
at EventBlock.run_actions_and_subevents (http://localhost:50000/eveng.js:933:8)
B
44
S
12
G
1
Posts: 231
Reputation: 3,875

Post » Mon Nov 24, 2014 2:26 am

@corlenbelspar
Thanks. Here's an updated runtime.js to replace in the paster plugin folder that works with r189.
https://dl.dropboxusercontent.com/u/542 ... runtime.js

I'm not going to update the c2addon on the first post until the next stable release since this is a breaking change that will make the plugin not work for any release prior to 189.

Cheers.
B
91
S
31
G
103
Posts: 5,234
Reputation: 67,754

Post » Mon Nov 24, 2014 2:39 am

Thanks man. It works like a charm!
B
44
S
12
G
1
Posts: 231
Reputation: 3,875

Post » Sat Nov 29, 2014 2:32 pm

Thanks for this great addon.

How does rgbaAt work here?

Thank you!
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Sat Nov 29, 2014 6:38 pm

There is no rgbAt in this plugin. For that you should look at the canvas plugin.
B
91
S
31
G
103
Posts: 5,234
Reputation: 67,754

Post » Mon Dec 01, 2014 6:51 pm

Hi,

I was referenced to use paster if I want to take a snapshot of just part of my canvas.

" paster plugin can let you do that (you paste the section inside it, then you download the corresponding URI using the browser object."

I am trying to make a math scratchpad and only want to save a section of the canvas. Can someone point me in the direction of how to do this?

I played around with the pluggin but cannot seem to get this to work.

Thanks in advanced
B
5
Posts: 12
Reputation: 249

Post » Mon Dec 01, 2014 7:25 pm

@crugh
You can paste (or draw) objects to the paster object with the paste action and then retrieve that image with the paster.imageUrl expression.

Alternatively you could use the Canvas object which has similar behavior except it has a "paste layer" action that will assist.
B
91
S
31
G
103
Posts: 5,234
Reputation: 67,754

Post » Wed Dec 03, 2014 11:58 pm

Thanks. I figured out what it was...I was trying to paste a text object into paster. I switched to the spritefont and the image records all the pasted object.

Great plugin!!!!
B
5
Posts: 12
Reputation: 249

Post » Sun Dec 28, 2014 6:58 pm

@R0J0hound
This plugin is fantastic! But I have a problem with it (bug maybe?).

I'm making a 2 player game with split-screen, so I copy and paste part of the layout and rotates it so a second player can play for the other side of the device.
Everything works except the tilemap, it only paste what inside of the window size, not the layout (like the rest of the objects does).
What do you think is causing this?


Image
B
34
S
15
G
6
Posts: 244
Reputation: 4,372

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: Demkamen and 4 guests