Advertisement
KoctrX

Untitled

Oct 5th, 2021
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. Transitions:
  2.  
  3. 1.
  4. wipe = new wg.transitions.Wipe({
  5. mixVal: .5,
  6. angle: 1,
  7. size: .5
  8. }, { nextId: cr.sprites[1].id });
  9. cr.sprites[0].setTransition(wipe);
  10. cr.rewind(cr.current_frame);
  11. cr.calculateFrames();
  12. cr.updateCanvas()
  13.  
  14.  
  15. 2.
  16. hide = new wg.transitions.Hide({
  17. mixVal: .5,
  18. }, { nextId: cr.sprites[1].id });
  19. cr.sprites[0].setTransition(hide);
  20. cr.rewind(cr.current_frame);
  21. cr.calculateFrames();
  22. cr.updateCanvas()
  23.  
  24.  
  25. 3.
  26. fadeColor = new wg.transitions.FadeColor({
  27. mixVal: .5,
  28. }, { nextId: cr.sprites[1].id });
  29. cr.sprites[0].setTransition(fadeColor);
  30. cr.rewind(cr.current_frame);
  31. cr.calculateFrames();
  32. cr.updateCanvas()
  33.  
  34. 4.
  35.  
  36. gum = new wg.transitions.Gum({
  37. mixVal: .5,
  38. }, { nextId: cr.sprites[1].id });
  39. cr.sprites[0].setTransition(gum);
  40. cr.rewind(cr.current_frame);
  41. cr.calculateFrames();
  42. cr.updateCanvas()
  43.  
  44.  
  45. ////////////////////////////////////////////////////////
  46. Effects:
  47.  
  48. 1.
  49. scrollLine = new wg.effects.ScrollLine({});
  50. cr.sprites[0].setEffect(scrollLine);
  51. cr.rewind(cr.current_frame);
  52. cr.calculateFrames();
  53. cr.updateCanvas()
  54.  
  55. 2.
  56. radial = new wg.effects.Radial();
  57.  
  58. cr.sprites[0].setEffect(radial);
  59. cr.rewind(cr.current_frame);
  60. cr.calculateFrames();
  61. cr.updateCanvas()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement