Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////
- //CREATE EVENT WITH 2 ENEMY EXAMPLES//
- //////////////////////////////////////
- //create system
- global.systemMain = part_system_create();
- //enemy follower
- global.followerParticle1 = part_type_create();
- part_type_shape(global.followerParticle1,pt_shape_flare);
- part_type_size(global.followerParticle1,1,1.20,0.001,0);
- part_type_scale(global.followerParticle1,1,1);
- part_type_color3(global.followerParticle1,make_colour_rgb(255,133,135),make_colour_rgb(240,62,65),make_colour_rgb(255,0,0));
- part_type_speed(global.followerParticle1,4,8,0.2,0);
- part_type_direction(global.followerParticle1,0,359,0,0);
- part_type_gravity(global.followerParticle1,0,270);
- part_type_orientation(global.followerParticle1,0,0,0,0,1);
- part_type_blend(global.followerParticle1,1);
- part_type_life(global.followerParticle1,30,40);
- part_type_blend(global.followerParticle1,true);
- global.followerParticle2 = part_type_create();
- part_type_shape(global.followerParticle2,pt_shape_spark);
- part_type_size(global.followerParticle2,0.25,0.45,-0.06,1);
- part_type_scale(global.followerParticle2,3.27,5.65);;
- part_type_color3(global.followerParticle2,11184895,6315007,2696447);
- part_type_alpha3(global.followerParticle2,0.55,0.65,0.02);
- part_type_speed(global.followerParticle2,0,0,0,0);
- part_type_direction(global.followerParticle2,0,0,0,6);
- part_type_gravity(global.followerParticle2,0,270);
- part_type_orientation(global.followerParticle2,54,291,-0.60,8,0);
- part_type_blend(global.followerParticle2,1);
- part_type_life(global.followerParticle2,10,20);
- //enemy offset
- global.followerOffsetParticle1 = part_type_create();
- part_type_shape(global.followerOffsetParticle1,pt_shape_flare);
- part_type_size(global.followerOffsetParticle1,1,1.20,0.001,0);
- part_type_scale(global.followerOffsetParticle1,1,1);
- part_type_color3(global.followerOffsetParticle1,make_color_rgb(155,255,155),make_color_rgb(130,255,130),make_color_rgb(0,255,0));
- part_type_speed(global.followerOffsetParticle1,4,8,0.2,0);
- part_type_direction(global.followerOffsetParticle1,0,359,0,0);
- part_type_gravity(global.followerOffsetParticle1,0,270);
- part_type_orientation(global.followerOffsetParticle1,0,0,0,0,1);
- part_type_blend(global.followerOffsetParticle1,1);
- part_type_life(global.followerOffsetParticle1,30,40);
- part_type_blend(global.followerOffsetParticle1,true);
- global.followerOffsetParticle2 = part_type_create();
- part_type_shape(global.followerOffsetParticle2,pt_shape_spark);
- part_type_size(global.followerOffsetParticle2,0.25,0.45,-0.06,1);
- part_type_scale(global.followerOffsetParticle2,3.27,5.65);
- part_type_color3(global.followerOffsetParticle2,make_color_rgb(200,255,200),make_color_rgb(130,255,130),make_color_rgb(0,255,0));
- part_type_alpha3(global.followerOffsetParticle2,0.55,0.65,0.02);
- part_type_speed(global.followerOffsetParticle2,0,0,0,0);
- part_type_direction(global.followerOffsetParticle2,0,0,0,6);
- part_type_gravity(global.followerOffsetParticle2,0,270);
- part_type_orientation(global.followerOffsetParticle2,54,291,-0.60,8,0);
- part_type_blend(global.followerOffsetParticle2,1);
- part_type_life(global.followerOffsetParticle2,10,20);
- //Collision with bullet/player objects (global.particleAmount is set to 50)
- part_particles_create(global.systemMain,x,y,global.followerParticle1,global.particleAmount);
- part_particles_create(global.systemMain,x,y,global.followerParticle2,global.particleAmount);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement