Jump to content

Drag rectangle


ForgeableSum
 Share

Recommended Posts

Its not the cleanest but I made a little example over lunch to show it could be done.

 

http://jsfiddle.net/trasheater/pqmymygq/4/

 

You need to create a sprite along side your rectangle to check collisions. Well I couldn't get the graphics rectangle to colide with sprites so creating a sprite along side it seemd the best way to check the collision.

 

Hope it helps

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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