1ipt0n Posted May 11, 2015 Share Posted May 11, 2015 Hi, I have sprite that I can drag but I want to start drag even if i click outside the sprite. so I made second bigger sprite and add onInputDown on it. I can change x,y of first sprite but have no idea how to fire start drag event of this first sprite. what I want is to click somewhere on the sprite drag boundingbox than center this sprite to this position and to sprite behave like i start drag normally (if i just start dragging it from that sprite) please help. thx Link to comment Share on other sites More sharing options...
lukaszwojciak Posted May 11, 2015 Share Posted May 11, 2015 If you've updated to pixi3 you can simply make the background (or any container "below") interactive. By default the events propagate to other interactive containers.Just in case you don't want this you can use e.stopPropagation() on the object when you want to finish the even trigger. Link to comment Share on other sites More sharing options...
1ipt0n Posted May 11, 2015 Author Share Posted May 11, 2015 correct me if I'm wrong but i'm using phaser 2.3 not pixi alone, so how can I update to pixi3? Link to comment Share on other sites More sharing options...
Recommended Posts