Jump to content

Drag Collisions Issue


Choeeey
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...