Jump to content

How to record Pointer's history?


woratana
 Share

Recommended Posts

I have read from this topic about history on pointer.

http://www.html5gamedevs.com/topic/2777-dragged-sprite-physics/

 

However, when I tried with this code:

startDrag: function(sprite) {  this.currentInput = this.input.activePointer;  this.currentInput.recordPointerHistory = true;},stopDrag: function(sprite) {  console.log( this.currentInput );}

The _history array is empty in console.

 

Please let me know how to make the pointer record history.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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