Ziden Posted August 9, 2018 Share Posted August 9, 2018 Hello I was wondering if its possible to use the standard browser file select (like choosing an image from my PC) and setting that as a phaserjs sprite. Is that possible ? I could not find any examples ! Best regards ! Link to comment Share on other sites More sharing options...
jjwallace Posted August 12, 2018 Share Posted August 12, 2018 Here are some hints. In Index or HTML: <img id="sealogo" src="/assets/sprite/ig_logo.png" style="display: none;"> In Phaser: var base64Picture = document.getElementById("sealogo").src; Link to comment Share on other sites More sharing options...
Recommended Posts