gberenst's Forum Posts

  • 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"?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • 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!

  • Thank you Ashley, it is much simpler now with those new features! I just suggest that will be great to add an example of this feature to the current camera example in the start page of C3, or also make another example just with this. It is a very useful and requested feature for apps and games.

  • Oh thank you!!! Will definetly try it out!

  • dop2000 thank you very much!!! I agree it looks really tricky and involves many steps... too much for such a sinple thing that may be needed in many games, and specially when wishing to make an app with C3.

    I wonder if it is possible to create a plugin to perform all this in a simple way. I will try to code it :)

  • Hi there! I wish to save user photo taken with camera using userMedia as an avatar in order to load later on in the game. I tried with the C3 user media example and it works fine, but the only option is to Invoke download with Browser object.

    I tried to save the generated url (userMedia.SnapshotURL) in localStorage, but can´t access it after the current session.

    Is there any way to access the downloads location from C3? or any other solution to accomplish this?

    thank you guys!

    Tagged:

  • Just in case, I have developed a soft keyboard and placed it at scirra store, hope you like it :)

    scirra.com/store/royalty-free-game-templates/soft-keyboard-2817

  • Ok, please read this thread, you must use cocoon ads 1.0.12. Latest is version 2.0 an will not work. Also don't use 2 different plugins for admob, it may cause dependency conflict.