Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if state_type = "jump" {
- state_type = "attack";
- attack_type = "uair";
- image_speed = 0.3;
- sprite_index = uair_sprite;
- image_index=0;
- timer = 0;
- time = 28;
- timer_speed=1;
- lcancel = 1;
- }
- if timer < time {
- state_type = "air_attack";
- if timer = 7 {
- sound_play(tail_sound1);
- //sound_play(choose(attack_voice1,attack_voice2,attack_voice3,attack_voice4))
- create_hitbox2(10,105-facing*30,4.45,5.25,11,7,kick2,obj_spark_slash2,0.4,0.4,20,34,self.id,3,2);
- create_hitbox(8,75+facing*30,4,5,9,6,kick2,obj_spark_hit2,0.74,0.8,17,29,self.id,9,2);
- }
- if timer = 10 {
- hitbox.damage = round(7*size);
- hitbox.bkb = 4;
- hitbox.kbg = 3;
- hitbox.dir = 120 - facing*60;
- hitbox.hitbox_x = size*(-4+facing*8);
- hitbox.hitbox_y = 30*size;
- hitbox.shield_damage = 9;
- hitbox.hitlag_frames = 5;
- hitbox.sfx = kick1;
- hitbox.gfx = obj_spark_hit1;
- }
- if timer = 9 && attack_success
- target.time+=4
- }
- if air = 0 {
- state_type="land";
- sprite_index = land_sprite;
- attack_type="none";
- timer=0;
- time=10-2*(timer>=15); }
- if timer >= time-1 && state_type != "flinch" && state_type != "air_flinch" {
- attack_type = "none";
- state_type = "jump";
- timer = 0;
- time =-1;
- }
Add Comment
Please, Sign In to add comment