Shear
Shearing is best understood by example. Please visit
tutorial page for
examples.
WARNING: FireFox cannot correctly run a shearing effect.
This bug in FireFox has been submitted to
Bugzilla (661452)
See the tutorial for more details.
create shear as MyShear
where rate=3 until=1 type=x completion=Done
end
- completion={routine}
- specify a routine to run when the shearing is complete.
- rate={number}
- a shear rate per second. Use a negative value as
appropriate.
- type={x|y}
- specify in which direction to shear the sprite. If type is not specified the shearing is performed both ways.
- until={number}
- the value at which the shearing should end. Be sure this number makes sense with
respect to the initial size of the sprite and the rate being negative or positive.