Screenshot Unpredictable

Get help using Construct 2

Post » Tue Jun 16, 2015 10:20 pm

I have:
On tap gesture - Take snapshot of canvas PNG quality 75
On canvas snapshot - Invoke download of Canvassapshot with filename "whatever.png"

In Chrome on PC the file downloads into the downloads folder

In IE 11 on PC a new window opens and displays:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAPZCAYAAADwbDfqAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAP+6SURBVHhe7P0HgOTGeeaNP0Cjc/fkmc2ZOVOJytkKliXZki0HyflsWU7y2Rdsn8/57nz23fl/9/mzz5/DnYNkK9iycqBEUSJFUsx5mZabdyenzuiA//sUGjM9sw30zOyS3Nl9f2QtunuAKlShqgDUU....etc etc...

On android, nothing happens.

I was hoping to be able to get the file to download on android. Hopefully, to the gallery folder.
Is this possible?
B
9
S
3
Posts: 146
Reputation: 1,150

Post » Wed Jun 17, 2015 12:37 am

I actually just posted this tutorial in another thread hehe. But we used it in our game to take a snapshot of the screen on death, and when you click a "share" button, it will bring up the official Android menu or iOS equivalent with all your sharing options, or even if you just want to save that screenshot you can do so to your photos.
https://www.scirra.com/tutorials/1457/s ... os-android
B
9
S
2
G
1
Posts: 19
Reputation: 660

Post » Wed Jun 17, 2015 7:10 am

Thanks looks awesome will give it a try.
B
9
S
3
Posts: 146
Reputation: 1,150

Post » Wed Jun 17, 2015 10:33 am

Just been playing Gate. Nice game. Simple yet addictive.

If I may make a couple of suggestions:

1. You may want to use the browser object to allow the user to exit the game using the back button
2. Also whilst playing the game it would be nice to go back to the menu using the back button
3. The score should be +1 as this is how many gates you have cleared
4. You could add in random bonus objects to collect +10 like fruit or gate keys

Good luck
B
9
S
3
Posts: 146
Reputation: 1,150


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests