How do I add photos from smart phone.

Just started using Construct 2? Post your questions here

Post » Wed Jul 26, 2017 2:43 pm

Hey guys how's it going? I was wondering is it possible for the user to add pictures to the game from their phone. Example like a match 3 game let's say the user wants the option to replace the pictures with their own instead of the ones made for thegame. Is that possible?

Thank you in advance for your help.
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
32
S
15
G
3
Posts: 356
Reputation: 5,269

Post » Tue Aug 01, 2017 7:59 pm

Hello,

Yes this is possible.
You need to import the files and put it on a sprite.
Save the base64 image in localstorage and it's ok..


You can find a plugin on the forum "search" extract-image.

Best regard,
Casimir
B
11
S
3
Posts: 40
Reputation: 815

Post » Wed Aug 02, 2017 5:08 pm

@Casimir - Ok thanks, just to be clear in my asking the right question to get the right answer. I want the user of my game (App) to be able to change out the game pictures so they can play the game with their own pictures they have on their smartphone.

Think of the candy crush game icons I want them to be able to replace those game icons and play with their own personal pics.

Still the same response???

Thank you
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
32
S
15
G
3
Posts: 356
Reputation: 5,269

Post » Thu Aug 03, 2017 6:02 pm

@ALLMarkMade - Hi

Yeah it's the same answer with your exemple:

-Set up blank sprite with all of the behaviour.
-Use filechooser for the image
-On filechooser selection changed |Sprite| Load image from url
-Exctract Base64 from sprite and save it in dictionnary or array or anything you want.

Try to avoid using the same "storage" for each "Base64 image (text)" Because it's heavy to access the storage.

But it's can be done.
Normaly it work on mobile device but i never tested it on export (only in preview on android).

Have a nice day
B
11
S
3
Posts: 40
Reputation: 815


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest