Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. //////////////////////////////////////
  4. //CREATE EVENT WITH 2 ENEMY EXAMPLES//
  5. //////////////////////////////////////
  6.  
  7. //create system
  8. global.systemMain = part_system_create();
  9.  
  10. //enemy follower
  11. global.followerParticle1 = part_type_create();
  12. part_type_shape(global.followerParticle1,pt_shape_flare);
  13. part_type_size(global.followerParticle1,1,1.20,0.001,0);
  14. part_type_scale(global.followerParticle1,1,1);
  15. part_type_color3(global.followerParticle1,make_colour_rgb(255,133,135),make_colour_rgb(240,62,65),make_colour_rgb(255,0,0));
  16. part_type_speed(global.followerParticle1,4,8,0.2,0);
  17. part_type_direction(global.followerParticle1,0,359,0,0);
  18. part_type_gravity(global.followerParticle1,0,270);
  19. part_type_orientation(global.followerParticle1,0,0,0,0,1);
  20. part_type_blend(global.followerParticle1,1);
  21. part_type_life(global.followerParticle1,30,40);
  22. part_type_blend(global.followerParticle1,true);
  23.  
  24. global.followerParticle2 = part_type_create();
  25. part_type_shape(global.followerParticle2,pt_shape_spark);
  26. part_type_size(global.followerParticle2,0.25,0.45,-0.06,1);
  27. part_type_scale(global.followerParticle2,3.27,5.65);;
  28. part_type_color3(global.followerParticle2,11184895,6315007,2696447);
  29. part_type_alpha3(global.followerParticle2,0.55,0.65,0.02);
  30. part_type_speed(global.followerParticle2,0,0,0,0);
  31. part_type_direction(global.followerParticle2,0,0,0,6);
  32. part_type_gravity(global.followerParticle2,0,270);
  33. part_type_orientation(global.followerParticle2,54,291,-0.60,8,0);
  34. part_type_blend(global.followerParticle2,1);
  35. part_type_life(global.followerParticle2,10,20);
  36.  
  37.  
  38. //enemy offset
  39. global.followerOffsetParticle1 = part_type_create();
  40. part_type_shape(global.followerOffsetParticle1,pt_shape_flare);
  41. part_type_size(global.followerOffsetParticle1,1,1.20,0.001,0);
  42. part_type_scale(global.followerOffsetParticle1,1,1);
  43. part_type_color3(global.followerOffsetParticle1,make_color_rgb(155,255,155),make_color_rgb(130,255,130),make_color_rgb(0,255,0));
  44. part_type_speed(global.followerOffsetParticle1,4,8,0.2,0);
  45. part_type_direction(global.followerOffsetParticle1,0,359,0,0);
  46. part_type_gravity(global.followerOffsetParticle1,0,270);
  47. part_type_orientation(global.followerOffsetParticle1,0,0,0,0,1);
  48. part_type_blend(global.followerOffsetParticle1,1);
  49. part_type_life(global.followerOffsetParticle1,30,40);
  50. part_type_blend(global.followerOffsetParticle1,true);
  51.  
  52. global.followerOffsetParticle2 = part_type_create();
  53. part_type_shape(global.followerOffsetParticle2,pt_shape_spark);
  54. part_type_size(global.followerOffsetParticle2,0.25,0.45,-0.06,1);
  55. part_type_scale(global.followerOffsetParticle2,3.27,5.65);
  56. part_type_color3(global.followerOffsetParticle2,make_color_rgb(200,255,200),make_color_rgb(130,255,130),make_color_rgb(0,255,0));
  57. part_type_alpha3(global.followerOffsetParticle2,0.55,0.65,0.02);
  58. part_type_speed(global.followerOffsetParticle2,0,0,0,0);
  59. part_type_direction(global.followerOffsetParticle2,0,0,0,6);
  60. part_type_gravity(global.followerOffsetParticle2,0,270);
  61. part_type_orientation(global.followerOffsetParticle2,54,291,-0.60,8,0);
  62. part_type_blend(global.followerOffsetParticle2,1);
  63. part_type_life(global.followerOffsetParticle2,10,20);
  64.  
  65.  
  66.  
  67.  
  68.  
  69. //Collision with bullet/player objects (global.particleAmount is set to 50)
  70. part_particles_create(global.systemMain,x,y,global.followerParticle1,global.particleAmount);
  71.  
  72. part_particles_create(global.systemMain,x,y,global.followerParticle2,global.particleAmount);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement