And some more examples updated :)

This commit is contained in:
alvinsight
2014-02-21 17:59:13 +00:00
parent 2669f81391
commit b03c6231e1
8 changed files with 18 additions and 14 deletions
+1 -1
View File
@@ -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.