|
|
@@ -0,0 +1,12 @@
|
|
|
+//Multiple toggle effects and mouse click events
|
|
|
+//so game could be buggy
|
|
|
+
|
|
|
+//Sword Object - Mouse Button Up Event
|
|
|
+if ($this.isTouching(ninja)) {
|
|
|
+ $this.remove(); // remove the original sword
|
|
|
+ star.toggleDraggable(); // make the star draggable
|
|
|
+ swordIcon.toggleVisible(); // makes the sword icon visible
|
|
|
+} else {
|
|
|
+ // otherwise, return sword to pile.
|
|
|
+ $this.x(672); $this.y(314);
|
|
|
+}
|