auto create/export image files?

Get help using Construct 2

Post » Sat Oct 15, 2016 10:34 am

I'm working on a generative art piece and I thought it would be cool to click a button or just automatically have C2 export images of the window space of my project to a specific folder.

Is this possible?
B
12
S
4
G
2
Posts: 132
Reputation: 1,749

Post » Sat Oct 15, 2016 3:23 pm

Well, you could go with the "Take snapshot of canvas" system action.
After that, you need to add an event "On canvas snapshot".
The image is then stored under the URL "CanvasSnapshot" and you can do with it whatever you want.

(Adapted from the C2 example "Taking Screenshots", located in [C2InstallDirectory]\examples\, you can take a look at that if you don't understand)
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Sat Oct 15, 2016 10:14 pm

randomly wrote:Well, you could go with the "Take snapshot of canvas" system action.
After that, you need to add an event "On canvas snapshot".
The image is then stored under the URL "CanvasSnapshot" and you can do with it whatever you want.

(Adapted from the C2 example "Taking Screenshots", located in [C2InstallDirectory]\examples\, you can take a look at that if you don't understand)


Thank you!
I was not aware of these functions and it is absolutely what I was looking for.
B
12
S
4
G
2
Posts: 132
Reputation: 1,749


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests