WickTools
Version 1.0
Hi! I made a little tool that helps with some Wick tasks!
// Moving a object
this.x = 10;
this.y = 10;
// vs.
this.xy(10, 10);
Download it here
Installation
At first, you’ll get a WickTools.zip
file. Rename it into WickTools.wickobj
and drag it into your Wick Editor.
Example .HTML
Example .WICK
Docs
Clip
this.xy(X, Y)
Moves the X and Y position in a single line, great time-saver!
this.xyp(X, Y)
Same as this.xy
, but adds instead of setting.
this.children()
Shortcut for this._children
, just so it doesn’t feel illegal!
this.removeChildren
Removes all children of the Clip. Useful for certain things.
this.metaclone()
Shortcut for this.clone().breakApart()
.
Array
[].toWickClip(identifier?)
Turns a Array of Wick.Base
(Clips, Paths, Buttons, etc.) into a single Wick.Clip