Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE EVENT:
- FOR BLUE PORTAL:
- a=0
- c_blue2=make_color_rgb(0,214,208);
- c_blue2=make_color_rgb(0,157,153);
- color1=c_blue3;
- color2=c_blue2;
- color3=c_blue;
- FOR GREEN PORTAL:
- a=0
- c_green2=make_color_rgb(29,208,9);
- c_green3=make_color_rgb(21,119,11);
- color1=c_green3;
- color2=c_green2;
- color3=c_green;
- ------------------------
- STEP EVENT:
- if(!a){
- a=1;
- Sname=part_system_create();
- part_system_depth(Sname,-1);
- particle1=part_type_create();
- part_type_shape(particle1,pt_shape_sphere);
- part_type_size(particle1,0.5,1,0,0);
- part_type_scale(particle1,0.50,1);
- part_type_color3(particle1,color1,color2,color3);
- part_type_alpha2(particle1,random_range(.8,.4),0);
- part_type_speed(particle1,1,2,0,0);
- part_type_direction(particle1,0,359,.1,0);
- part_type_orientation(particle1,0,359,0,0,1);
- part_type_blend(particle1,1);
- part_type_life(particle1,15,35);
- emitter1=part_emitter_create(Sname);
- part_emitter_region(Sname,emitter1,x,x,y,y,ps_shape_ellipse,1);
- part_emitter_stream(Sname,emitter1,particle1,3);
- }
- ---------------------------------------------------------
- ROOM END EVENT:
- if(a){
- part_system_destroy(Sname);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement