mirror of
https://github.com/wassname/phaser.git
synced 2026-09-09 11:28:47 +08:00
And some more examples updated :)
This commit is contained in:
@@ -23,7 +23,7 @@ function create() {
|
||||
// Directly create sprites from the group.
|
||||
item = items.create(90, 90 * i, 'item', i);
|
||||
// Enable input detection, then it's possible be dragged.
|
||||
item.input.start(0,true);
|
||||
item.inputEnabled = true;
|
||||
// Make this item draggable.
|
||||
item.input.enableDrag();
|
||||
// Then we make it snap to 90x90 grids.
|
||||
|
||||
Reference in New Issue
Block a user