Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag stops working when physics are enabled #598

Closed
mariogarranz opened this issue Mar 18, 2014 · 5 comments
Closed

Drag stops working when physics are enabled #598

mariogarranz opened this issue Mar 18, 2014 · 5 comments

Comments

@mariogarranz
Copy link

As described in this thread:

http://www.html5gamedevs.com/topic/4764-problems-group-vs-sprite-collision-and-drag-with-phaser-2/

Once physics are enabled for a Sprite, it can't be dragged properly.

onDragStart and onDragStop events are fired correctly, but the Sprite wont move following the mouse/touch pointer.

@mpostma
Copy link

mpostma commented Mar 18, 2014

I reported a similar issue: #567. Rich provided a solution which didn't work for me, but I'd be interested to hear if it solves your problem.

@mariogarranz
Copy link
Author

Woops, you are totally right, this issue is duplicated, will close it and keep commenting on yours.

Thanks :)

@mariogarranz
Copy link
Author

Since #567 was closed but apparently still not fixed, I'm leaving this issue open unless Rich considers it is better to move the discussion back to the other one.

@mariogarranz mariogarranz reopened this Mar 18, 2014
@mariogarranz
Copy link
Author

Just seen Rich answer in #601, so I'm closing this.

@photonstorm
Copy link
Collaborator

Please check the dev build: https://github.com/photonstorm/phaser/tree/dev/build

I've made a LOT of changes tonight to losen things up a bit. You can now drag Sprites with physics bodies for example, without having to set moves to false (unless they are actually moving!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants