Advertisement
Guest User

Untitled

a guest
Jun 25th, 2015
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. CREATE EVENT:
  2.  
  3. FOR BLUE PORTAL:
  4.  
  5. a=0
  6. c_blue2=make_color_rgb(0,214,208);
  7. c_blue2=make_color_rgb(0,157,153);
  8. color1=c_blue3;
  9. color2=c_blue2;
  10. color3=c_blue;
  11.  
  12. FOR GREEN PORTAL:
  13.  
  14. a=0
  15. c_green2=make_color_rgb(29,208,9);
  16. c_green3=make_color_rgb(21,119,11);
  17. color1=c_green3;
  18. color2=c_green2;
  19. color3=c_green;
  20.  
  21. ------------------------
  22. STEP EVENT:
  23.  
  24. if(!a){
  25. a=1;
  26. Sname=part_system_create();
  27. part_system_depth(Sname,-1);
  28. particle1=part_type_create();
  29. part_type_shape(particle1,pt_shape_sphere);
  30. part_type_size(particle1,0.5,1,0,0);
  31. part_type_scale(particle1,0.50,1);
  32. part_type_color3(particle1,color1,color2,color3);
  33. part_type_alpha2(particle1,random_range(.8,.4),0);
  34. part_type_speed(particle1,1,2,0,0);
  35. part_type_direction(particle1,0,359,.1,0);
  36. part_type_orientation(particle1,0,359,0,0,1);
  37. part_type_blend(particle1,1);
  38. part_type_life(particle1,15,35);
  39. emitter1=part_emitter_create(Sname);
  40. part_emitter_region(Sname,emitter1,x,x,y,y,ps_shape_ellipse,1);
  41. part_emitter_stream(Sname,emitter1,particle1,3);
  42. }
  43.  
  44. ---------------------------------------------------------
  45. ROOM END EVENT:
  46.  
  47. if(a){
  48. part_system_destroy(Sname);
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement