• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker Load image as sprite Android

P

ProjectGamesInc

Guest
I've been reading a lot around here for a correct way to import fron android gallery an image to use it as sprite.
What i want to do is to load an image from android galley in a room and then save a screenshot of that room to share it.
I have tried a lot of plugins and extension but no one seems to work correctly.
Is there a real way to import an image from my phone gallery in GMS2?
 
F

fenasi

Guest
Send it to pc
And you'll need to create an object before put in room.
 
P

ProjectGamesInc

Guest
I cant understand what do you mean, its android not pc, and your reply seems to not have a real sense.
I have to use an image directly in the app i'm programming.
 

rIKmAN

Member
I cant understand what do you mean, its android not pc, and your reply seems to not have a real sense.
I have to use an image directly in the app i'm programming.
There are extensions in the marketplace for this, you can't do it with any built in functions.

The first 3 results from a Google search:
https://marketplace.yoyogames.com/assets/4198/camera-ios-android
https://marketplace.yoyogames.com/assets/1962/select-media-from-gallery
https://marketplace.yoyogames.com/assets/5262/camera-gallery-android
 
P

ProjectGamesInc

Guest
Thanks for the reply.
I've already tried the 1st 2 extension without any success, the first work but there are problems with the images rotation.

I will try the 3rd you have linked.
 

rIKmAN

Member
Thanks for the reply.
I've already tried the 1st 2 extension without any success, the first work but there are problems with the images rotation.

I will try the 3rd you have linked.
What problems with rotation?
The images should be loaded as sprites so any issues with rotation being off could be fixed by changing the sprite origin yourself using sprite_set_offset().
 
P

ProjectGamesInc

Guest
Not in this case, the camera ios android plugin (the first) read and rotate the images before drawing them, i've already texted the creator and as i said, right now the issue cant be fixed without an update, he is working on it. I've already tried houndreds of ways with no success, i will try the 3rd you posted or i will wait for the 1st to be updated.

Thanks again for your feedback.

EDIT : oh my, i was wrong, it is the 3rd that have the rotation problem. The 1st dosent even start, giving back a fatal error, i will try the 2nd, or maybe text to the creator of the 1st one to try to fix the issue.
Right now i dont have access to gms2 so i cant paste here the fatal error, maybe i will show the error late so we can try to understand what's the problem.
 
Top