Drag and drop image

Recommended Posts

I'm still a phaser beginner, so I'm not sure the following helps:

You can easily load images at runtime (see e.g.\loader\image\load image on click.js) though I think they have to be in the webspace already. You could probably use any standard technology to upload an image to a given path and than load it in phaser.

Regarding the drag and drop there is functionality for this (see e.g.\input\dragging\stack of cards.js). I think it should be easy to adjust this example to move the image back to its original position, if the image is on an invalid position at drag stop.

Again: I have not done any of these. Take a look at, it's a very valuable resource regarding any Phaser3 stuff.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.