Ziden Posted August 9, 2018 Share Posted August 9, 2018 I have an app thats a mix of phaser an react. Im loading some images as follows: this.load.image('bone', 'assets/images/bone.png'); How would it be possible to dynamically get the image of a sprite, and render into html ? Something like (example) const image = sprite.image; return <img src={image}/> Is that somehow possible ? Also, is listing images possible ? (get all loaded images) What im tryng to achieve is a panel that shows the sprite image, and you could change the sprite image to another image (maye even choosing an image from your pc) Thanks for any help ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.