如何知道拖動的距離,未使用的PositionUP或onInputUp以區分拖動和長按?如何區分Phaser中的點擊和拖動?
它是一些代碼:
var fnd = game.add.group();
var o = fnd.create(game.world.randomX, game.world.randomY, 'fon');
o.events.onDragStart.add(this.DragActivo, this);
DragActive = function (image) {
//When something has been moved is drag but when something has been pressed for long time is clicked
};
謝謝其實不要在移相器中寫代碼,但謝謝你的回答@icosamuel – Julianjp