gberenst's Recent Forum Activity

  • Oh, great, thank you! Never used it yet, any suggestions/steps?

  • Hi guys, I just wish to place an image taken either by camera input or by file chooser in a square sprite (1200 x 1200), but most of the mobile cameras take 16:9 pictures. I wish to crop the picture at runtime and then load it into the square sprite. Is that possible?

    Tagged:

  • dop2000, I took your version and made some minor changes to tidy up things, like sprites positions in list. Here´s final version, thank you!

    LINK

  • Yes Ashley, I was wrong, after testing a while I knew that was happening but couldn´t find the way to load them gradually and automatically without loosing some values from variables I needed during the iteration (and loopindex*X seconds action to give some time not to overlap binary data inside the iteration didn´t work out).

    However, the solution brought by dop2000 worked perfectly! (My latest version still didn´t work out after dop2000 post because of an uncommented old event) Thank you guys very much for your help!

  • Thanks very much for your help, that´s a great idea. However, I couldn´t make it work fine either. Did it work for you?

  • Ashley, I´ve tried to asolate the problem. Here´s a sample capx showing what I need to accomplish, but as Localstorage get binary is asynchronous, I can´t find the way to iterate localstorage and show saved pictures one by one. I also tried to iterate through LocalStorage Keys, but the problem remains the same. Hope you see my point in capx, and really hope this can be performed with C3. Thank you for all your great support.

    Project Link

  • Ashley sorry to bother again, I´ve made many tests, and think I found the root cause. When using the code you provided (adapted to camera) and the binaryData, Ajax and LocalStorage stuff, I save and then load an image later on without any problem, but when saving more than one in different localstorage keys (w_photo_0, w_photo_1), it just retrieves the last picture binary saved. I´ve made many tests, even calling them one by one and loading in different frames, debugged it and logged it on console, and always same result. Do you have an idea what is going on in here? Thank you very much for your help.

  • Thank you Ashley, it does seems to be the cause of the problem. I am setting different frame number for each image and then invoking the load image from URL and doesn't work either. Is there another way to load images into different frames?

  • I am trying to save and load pictures in localstorage. Everything goes fine when saving and loading just one. But when trying to retrieve pictures from localstorage (stored with photo_1, photo_2, etc) and show them in spawned sprites inside the layout, it always shows the last picture taken in every sprite. I am using for each (ordered) in order to load each picture in different sprite. May it be a problem to have just one binary data "object"?

  • Ashley, here I am posting the C3 built-in camera example, and adding the save/load example for user media, based in the snapshot example you shared, just in case someone needs it. Thank you guys for your great support!

    Link to file

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Awesome, thank you very much!

  • Sorry Ashley, I´ve been trying to implement this but couldn´t make it, could you please give a little more detail on it, specially when loading UserMedia.snapshotURL to BinaryData using ajax (I saw there is a new condition "post binary to URL" but guess it does the oposite thing). Thank you!

gberenst's avatar

gberenst

Member since 30 Oct, 2014

Twitter
gberenst has 1 followers

Trophy Case

  • 10-Year Club
  • x5
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

12/44
How to earn trophies