alpertayfun

Members
  • Content Count

    3
  • Joined

  • Last visited

About alpertayfun

  • Rank
    Newbie

Recent Profile Visitors

358 profile views
  1. This is my solution : var mylatesttap; sprite.events.onInputDown.add(doubleclick,this); function doubleclick(item,pointer){ var now = new Date().getTime(); var timesince = now - mylatesttap; if((timesince < 600) && (timesince > 0)){ console.log("double tap"); }else{ console.log("don't"); } mylatesttap = new Date().getTime();}
  2. save my life : ) thank you dude.
  3. Hello, I need to if item.x equal 100 then items cannot be drag. I added : currentsprite.events.onDragStop.add(mouseDragEnd, this); function mouseDragEnd(item, pointer) { if(item.x == 100) item.stopDrag(); } But there is not working. Did anyone help me = ) ? Thanks. Alper