jsutton's Forum Posts

  • Ashley

    If we figure this out, I'm volunteering to do a tutorial.

    I've read every post (even one that was mistakenly put in C2 forum) and tried every combination I can conceive.

    Info being sent:

  • What I am trying to understand: Using construct 3, is there a way to upload an image to a server (ajax/php), retrieve that image, and then insert it into a sprite.

    Tagged:

  • Anyone have any ideas?

    I can upload base64 to the server up to around 5kb of data.

    Past that the upload fails.

    My guess is that it has to do with Apache limiting the URL to 8k characters.

    Is there way to compress this or use an alternative to base64? (if so could you point me in the direction of how to do that? I've read all of the forum comments and the manual. I was thinking I could take the base64 and apply float64(8) and unpack it. Unfortunately I couldn't figure out how to unpack it. At this point, I'm going to take a break...)

    As an aside, URLencode would not work either.

  • This works locally, and I'm still trying to figure out what a byte offset is and how the heck it works.

    The code below will not pass to the server without error (works fine on my local pc). Will update as I figure it out...day 2 is in the books lol. Hopefully a few more days (or less) I'll have something to report that works passing into mysql via phpmyadmin. I will say this, the base64 as a png file is to large.

  • Behavior Fade

  • Some folks have gotten it to work by adding

    data:image/png;base64, in front of the base64 string and then loading via URL

    iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==

    construct.net/en/forum/construct-3/how-do-i-8/load-base64-image-sprite-141995

    I've just not been able to get it working.

  • Set image from URL, set response binary, load array with binary code.

    Posted this to the server using AJAX (as a Blob), and cleared the storage, refreshed (everything is cleared out including local storage).

    Pulled the info back from the server and loaded into the array.

    My question, how does one load the stored binary code back into the a sprite?

  • I'm curious if anyone else has noticed that AJAX requests do not work with the debugger?

    Works fine when in normal preview.

  • You ever figure this out?

  • Solved:

    Thanks for the pointer. Was running in circles.

    Just incase anyone else has this issue.

    Youtube embed link example:

    <iframe width="560" height="315" src=

    "https://www.youtube.com/embed/uyraC7ajsfg"

    frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

    iFrame: Navagate to: "https://www.youtube.com/embed/uyraC7ajsfg"

    Vimeo is the same format.

    Rumble format works fine.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My code is stupid simple to test. There must be a setting I'm missing or some security issue?

  • Using C3 online version.

    Rumble embeded link works in preview using chrome.

    Youtue embeded link does not work in preview using chrome.

    The iframe displays "www.youtube.com refused to connect" with the youtube link.

    Any thoughts?

  • Bump (the people doing this for a living need a response please, ty)

  • Ashley The IAP for C2 is not triggering "On Success" (no even on a general success), and I see people are having issues with C3. Have not tested "has product" because this is a trigger event not a general (ad turn off or the like).

    Any updates on the status?

  • You do not have permission to view this post