Advertisement
tinyevil

Untitled

Jul 19th, 2019
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. widget:runFX(
  2. fx.timescale(delay, fx.set(symbol_container:alpha(), 0))
  3. ..
  4. fx.lua(component:callback(capture_pos))
  5. ..
  6. (
  7. fx.timescale(appear_time, fx.set(symbol_container:alpha(), fx.spline(0, 1)))
  8. +
  9. (
  10. fx.timescale(
  11. 0,
  12. fx.set(symbol_container:x(), fx.rx(xs)),
  13. fx.set(symbol_container:y(), fx.rx(ys))
  14. )
  15. ..
  16. fx.timescale(
  17. prep_time,
  18. fx.add(
  19. symbol_container:x(),
  20. math.cos(ang) * dst * x_scale,
  21. fx.spline({0, 0, 2.6}, {1, 1, 0})
  22. ),
  23. fx.add(
  24. symbol_container:y(),
  25. math.sin(ang) * dst * y_scale,
  26. fx.spline({0, 0, 2.6}, {1, 1, 0})
  27. )
  28. )
  29. +
  30. (
  31. fx.wait(wait_time)
  32. ..
  33. fx.timescale(
  34. fly_time,
  35. fx.set(r_trigger, fx.spline(0, 1)), --force target updates
  36. fx.set(
  37. symbol_container:x(),
  38. fx.rx(xt),
  39. fx.spline(0, 1)
  40. ),
  41. fx.set(
  42. symbol_container:y(),
  43. fx.rx(yt),
  44. fx.spline({0, 0, 0}, {0.5, 0.13, 1}, {1, 1, 0})
  45. )
  46. )
  47. )
  48. )
  49. +
  50. (
  51. fx.wait(math.max(0, total_fly_time - disapear_time))
  52. ..
  53. (
  54. ((incr_callback and fx.lua(incr_callback)) or fx.nothing())
  55. ..
  56. fx.timescale(
  57. disapear_time,
  58. fx.set(symbol_container:alpha(), fx.spline(1, 0))
  59. )
  60. )
  61. )
  62. )
  63. ..
  64. fx.lua(remove)
  65. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement