How do I make a user download an image ?

Get help using Construct 2

Post » Thu Apr 30, 2015 9:27 am

Hi.
I'm working on a card generator for a boardgame.
The card will be composed by multiple sprites and the final result could be made by pasting all these sprites on a canvas.

Is there any way to make this final sprite downloadable by the user ? How ?

Another question : is there a simple way to create a resize functionality on a sprite (by dragging card corners for example) ?
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Thu Apr 30, 2015 9:44 am

For you another question there is an old example in the how do I FAQ.

For your first question, use the system action "Snapshot Canvas".
Use the browser's plugin action "Invoke download" and makes it download the system expression "CanvasSnapshot".
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
292
S
115
G
96
Posts: 7,295
Reputation: 70,795

Post » Thu Apr 30, 2015 10:30 am

Amazing, thanks !
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Thu Apr 30, 2015 10:52 am

My final picture would have a high definition, like a height of 1500 px.
Is there any way to take a screenshot of an image bigger than our window ?
Plus, is there any way to crop the canvas screenshot to just snap the card and not the other stuff around it ?
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Thu Apr 30, 2015 3:57 pm

I managed to do it with the canvas plugin. :)
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Sat Apr 08, 2017 3:52 am

Coin-coin le Canapin wrote:I managed to do it with the canvas plugin. :)

Could you please offer me an example or walkthrough? I am needing to snapshot something that doesn't fit on my screen all at once
B
36
S
11
G
4
Posts: 94
Reputation: 4,208


Return to How do I....?

Who is online

Users browsing this forum: dand, mickclarke and 29 guests