Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- widget:runFX(
- fx.timescale(delay, fx.set(symbol_container:alpha(), 0))
- ..
- fx.lua(component:callback(capture_pos))
- ..
- (
- fx.timescale(appear_time, fx.set(symbol_container:alpha(), fx.spline(0, 1)))
- +
- (
- fx.timescale(
- 0,
- fx.set(symbol_container:x(), fx.rx(xs)),
- fx.set(symbol_container:y(), fx.rx(ys))
- )
- ..
- fx.timescale(
- prep_time,
- fx.add(
- symbol_container:x(),
- math.cos(ang) * dst * x_scale,
- fx.spline({0, 0, 2.6}, {1, 1, 0})
- ),
- fx.add(
- symbol_container:y(),
- math.sin(ang) * dst * y_scale,
- fx.spline({0, 0, 2.6}, {1, 1, 0})
- )
- )
- +
- (
- fx.wait(wait_time)
- ..
- fx.timescale(
- fly_time,
- fx.set(r_trigger, fx.spline(0, 1)), --force target updates
- fx.set(
- symbol_container:x(),
- fx.rx(xt),
- fx.spline(0, 1)
- ),
- fx.set(
- symbol_container:y(),
- fx.rx(yt),
- fx.spline({0, 0, 0}, {0.5, 0.13, 1}, {1, 1, 0})
- )
- )
- )
- )
- +
- (
- fx.wait(math.max(0, total_fly_time - disapear_time))
- ..
- (
- ((incr_callback and fx.lua(incr_callback)) or fx.nothing())
- ..
- fx.timescale(
- disapear_time,
- fx.set(symbol_container:alpha(), fx.spline(1, 0))
- )
- )
- )
- )
- ..
- fx.lua(remove)
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement