copy contents of canvas to sprite

For questions about using Classic.

Post » Thu Mar 19, 2009 8:32 am

is it possible to make a sprite out of canvas contents at runtime?
basically, I want to be able to use distort map on something drawn on the canvas
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Thu Mar 19, 2009 10:15 am

There doesn't seem to be. The Image Manipulator can copy to and from sprites, but there doesn't appear to be any way to grab the canvas with it.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Thu Mar 19, 2009 3:50 pm

The "Copy from sprite" action in the image manipulator object can grab the image from a canvas, but it's pretty slow. It probably wouldn't work well enough for realtime applications.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Thu Mar 19, 2009 6:03 pm

It does? Huh. I tried a test before posting my reply and I couldn't get it to work. I made the event in Start of Layout.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Thu Mar 19, 2009 6:48 pm

Copying from something in start of layout may not work, as the image has not yet been drawn to copy.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Fri Apr 10, 2009 9:13 pm

sorry to raise this thread from the dead, but I need it again
is it possible to use image manipulator to copy from canvas?
when I try to paste it, it crashes everytime
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Fri Apr 10, 2009 9:26 pm

Do you have a .cap I can check quickly?
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Fri Apr 10, 2009 10:41 pm


left click copies from canvas
right click copies to sprite
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Apr 12, 2009 11:46 pm

not to be a pain, but...uh
is copying contents of canvas with image manipulator supposed to work or not?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Apr 12, 2009 11:47 pm

It's fixed in the next version.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests