Choeeey Posted February 16, 2015 Share Posted February 16, 2015 Hi everyone, having a slight problem. Basically I have a sprite with drag enabled. If the sprite hits a wall then the sprite will be put back to its original position. What is happening though is, as long as you let go of the sprite (by unclicking the mouse or releasing your finger from the touch screen) it works. However if the mouse remains clicked/ finger remains on the sprite while dragging the sprite it will not collide. You can just drag it over all the walls no problem. So if I have a space, then a wall and a space - You can just drag the sprite through the wall to the next space. But if you let go of the mouse when you are on the wall it will be handled/ Any ideas? EDIT: SOLVED MYSELF Link to comment Share on other sites More sharing options...
Choeeey Posted February 16, 2015 Author Share Posted February 16, 2015 I just solved this problem by killing the sprite and re-adding it. Link to comment Share on other sites More sharing options...
Recommended Posts