From adfc3307246a304faabce8cb8e7063e95b7c5a4e Mon Sep 17 00:00:00 2001 From: P-Star7 Date: Sat, 6 May 2017 21:29:11 -0500 Subject: [PATCH 1/2] Add files via upload Adds the Fire Nipper and Fire Nipper's Fireball objects --- obj_nipper_fire.object.gmx | 272 ++++++++++++++++++++++++++++++++++ obj_nipperfireball.object.gmx | 123 +++++++++++++++ 2 files changed, 395 insertions(+) create mode 100644 obj_nipper_fire.object.gmx create mode 100644 obj_nipperfireball.object.gmx diff --git a/obj_nipper_fire.object.gmx b/obj_nipper_fire.object.gmx new file mode 100644 index 00000000..2c773112 --- /dev/null +++ b/obj_nipper_fire.object.gmx @@ -0,0 +1,272 @@ + + + spr_nipper + 0 + -1 + 0 + 0 + obj_deactenemyparent + <undefined> + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Quite the hothead +//States +//0 = Doing nothing +//1 = Opening its mouth +//2 = firing + + +//How vulnerable is this enemy to various items? +hardness = 0 + +//How vulnerable is this enemy to Mario? +stomp = 1 + +//Facing direction +direct = -1 + +//Animate +image_speed = 0.15 + +//Don't move +hspeed = 0 + +//Not doing anything yet +state = 0 + +//The amount of fireballs which will be spat in a salvo +fireballsalvo = 4 + +//Has not spat any fireballs in this round +hasspat = 0 + +//Fire projectiles +alarm[1] = 25 + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Fire! + +if instance_exists(obj_mario) +{ +//Logic state +state = 2 + +//Spit fireballs which depend upon Mario's distance +if obj_mario.x < x +{ +with instance_create(x,y,obj_nipperfireball) hspeed = -0.03125*(other.x-obj_mario.x-8) +} +else +{ +with instance_create(x,y,obj_nipperfireball) hspeed = -0.03125*(other.x-obj_mario.x+8) +} +//Add one to the amount of fireballs which have been spat so far +hasspat += 1 + +//Play quot sound +audio_play_sound(snd_fireball,0,0) + +//Spit another unless it has already spat enough +if hasspat < fireballsalvo +{ +alarm[2] = 15 +} +else +{ +alarm[0] = 15 +hasspat = 0 +} + +} +//If Mario's dead +else +{ +alarm[0] = 2 +} + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Ready, aim... + +//Prepare to throw +state = 1 +alarm[2] = 30 + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///I'm just doing nothing +state = 0 + +//Prepare to fire +if instance_exists(obj_mario) +{ +alarm[1] = 120 +} + +else +{ +} + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Fire Nipper logic +//Which animation to pick and whether to be animated or not +if state = 0 +{ +sprite_index = spr_nipper +image_speed = 0.15 +} +else +{ +sprite_index = spr_nipper_jump +image_speed = 0 +image_index = 0 +} + +//Look at Mario +if instance_exists(obj_mario) +{ + if obj_mario.x > x + direct = 1 + else + direct = -1 +} + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Draw the Fire Nipper +draw_sprite_ext(sprite_index,image_index,x,y,direct,1,0,c_white,1) + + + + + + + 0 + 0 + 0 + 0.5 + 0.100000001490116 + 0 + 0.100000001490116 + 0.100000001490116 + 0.200000002980232 + -1 + 0 + + 0,16 + 16,16 + + diff --git a/obj_nipperfireball.object.gmx b/obj_nipperfireball.object.gmx new file mode 100644 index 00000000..6d3c4f6e --- /dev/null +++ b/obj_nipperfireball.object.gmx @@ -0,0 +1,123 @@ + + + spr_fireball + 0 + -1 + -2 + 0 + <undefined> + <undefined> + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Fire which acts like a hammer + +//Animate +image_speed = 0.15 + +//Gravity +gravity = 0.2 + +//Move up +vspeed = -4.5 + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Destroy below view +if y > view_yview[0] + view_hview[0] + instance_destroy() + +//Correct facing direction +if hspeed < 0 + image_xscale = -1 + +//Speed caps +if hspeed > 2 +{ +hspeed = 2 +} + +if hspeed < -2 +{ +hspeed = -2 +} + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Hurt Mario +with other event_user(0) + + + + + + + 0 + 0 + 0 + 0.5 + 0.100000001490116 + 0 + 0.100000001490116 + 0.100000001490116 + 0.200000002980232 + -1 + 0 + + 8,0 + 8,8 + + From e551079099d01d43b1d116b6810b81f667bbef29 Mon Sep 17 00:00:00 2001 From: P-Star7 Date: Sat, 6 May 2017 21:39:10 -0500 Subject: [PATCH 2/2] Adds the Fire Nipper and Fire Nipper's Fireball objects (in the right folder) --- .../obj_nipper_fire.object.gmx | 544 +++++++++--------- .../obj_nipperfireball.object.gmx | 246 ++++---- 2 files changed, 395 insertions(+), 395 deletions(-) rename obj_nipper_fire.object.gmx => objects/obj_nipper_fire.object.gmx (95%) rename obj_nipperfireball.object.gmx => objects/obj_nipperfireball.object.gmx (96%) diff --git a/obj_nipper_fire.object.gmx b/objects/obj_nipper_fire.object.gmx similarity index 95% rename from obj_nipper_fire.object.gmx rename to objects/obj_nipper_fire.object.gmx index 2c773112..211950b2 100644 --- a/obj_nipper_fire.object.gmx +++ b/objects/obj_nipper_fire.object.gmx @@ -1,272 +1,272 @@ - - - spr_nipper - 0 - -1 - 0 - 0 - obj_deactenemyparent - <undefined> - - - - 1 - 603 - 7 - 0 - 0 - -1 - 2 - - - self - 0 - 0 - - - 1 - ///Quite the hothead -//States -//0 = Doing nothing -//1 = Opening its mouth -//2 = firing - - -//How vulnerable is this enemy to various items? -hardness = 0 - -//How vulnerable is this enemy to Mario? -stomp = 1 - -//Facing direction -direct = -1 - -//Animate -image_speed = 0.15 - -//Don't move -hspeed = 0 - -//Not doing anything yet -state = 0 - -//The amount of fireballs which will be spat in a salvo -fireballsalvo = 4 - -//Has not spat any fireballs in this round -hasspat = 0 - -//Fire projectiles -alarm[1] = 25 - - - - - - - - 1 - 603 - 7 - 0 - 0 - -1 - 2 - - - self - 0 - 0 - - - 1 - ///Fire! - -if instance_exists(obj_mario) -{ -//Logic state -state = 2 - -//Spit fireballs which depend upon Mario's distance -if obj_mario.x < x -{ -with instance_create(x,y,obj_nipperfireball) hspeed = -0.03125*(other.x-obj_mario.x-8) -} -else -{ -with instance_create(x,y,obj_nipperfireball) hspeed = -0.03125*(other.x-obj_mario.x+8) -} -//Add one to the amount of fireballs which have been spat so far -hasspat += 1 - -//Play quot sound -audio_play_sound(snd_fireball,0,0) - -//Spit another unless it has already spat enough -if hasspat < fireballsalvo -{ -alarm[2] = 15 -} -else -{ -alarm[0] = 15 -hasspat = 0 -} - -} -//If Mario's dead -else -{ -alarm[0] = 2 -} - - - - - - - - 1 - 603 - 7 - 0 - 0 - -1 - 2 - - - self - 0 - 0 - - - 1 - ///Ready, aim... - -//Prepare to throw -state = 1 -alarm[2] = 30 - - - - - - - - 1 - 603 - 7 - 0 - 0 - -1 - 2 - - - self - 0 - 0 - - - 1 - ///I'm just doing nothing -state = 0 - -//Prepare to fire -if instance_exists(obj_mario) -{ -alarm[1] = 120 -} - -else -{ -} - - - - - - - - 1 - 603 - 7 - 0 - 0 - -1 - 2 - - - self - 0 - 0 - - - 1 - ///Fire Nipper logic -//Which animation to pick and whether to be animated or not -if state = 0 -{ -sprite_index = spr_nipper -image_speed = 0.15 -} -else -{ -sprite_index = spr_nipper_jump -image_speed = 0 -image_index = 0 -} - -//Look at Mario -if instance_exists(obj_mario) -{ - if obj_mario.x > x - direct = 1 - else - direct = -1 -} - - - - - - - - 1 - 603 - 7 - 0 - 0 - -1 - 2 - - - self - 0 - 0 - - - 1 - ///Draw the Fire Nipper -draw_sprite_ext(sprite_index,image_index,x,y,direct,1,0,c_white,1) - - - - - - - 0 - 0 - 0 - 0.5 - 0.100000001490116 - 0 - 0.100000001490116 - 0.100000001490116 - 0.200000002980232 - -1 - 0 - - 0,16 - 16,16 - - + + + spr_nipper + 0 + -1 + 0 + 0 + obj_deactenemyparent + <undefined> + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Quite the hothead +//States +//0 = Doing nothing +//1 = Opening its mouth +//2 = firing + + +//How vulnerable is this enemy to various items? +hardness = 0 + +//How vulnerable is this enemy to Mario? +stomp = 1 + +//Facing direction +direct = -1 + +//Animate +image_speed = 0.15 + +//Don't move +hspeed = 0 + +//Not doing anything yet +state = 0 + +//The amount of fireballs which will be spat in a salvo +fireballsalvo = 4 + +//Has not spat any fireballs in this round +hasspat = 0 + +//Fire projectiles +alarm[1] = 25 + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Fire! + +if instance_exists(obj_mario) +{ +//Logic state +state = 2 + +//Spit fireballs which depend upon Mario's distance +if obj_mario.x < x +{ +with instance_create(x,y,obj_nipperfireball) hspeed = -0.03125*(other.x-obj_mario.x-8) +} +else +{ +with instance_create(x,y,obj_nipperfireball) hspeed = -0.03125*(other.x-obj_mario.x+8) +} +//Add one to the amount of fireballs which have been spat so far +hasspat += 1 + +//Play quot sound +audio_play_sound(snd_fireball,0,0) + +//Spit another unless it has already spat enough +if hasspat < fireballsalvo +{ +alarm[2] = 15 +} +else +{ +alarm[0] = 15 +hasspat = 0 +} + +} +//If Mario's dead +else +{ +alarm[0] = 2 +} + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Ready, aim... + +//Prepare to throw +state = 1 +alarm[2] = 30 + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///I'm just doing nothing +state = 0 + +//Prepare to fire +if instance_exists(obj_mario) +{ +alarm[1] = 120 +} + +else +{ +} + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Fire Nipper logic +//Which animation to pick and whether to be animated or not +if state = 0 +{ +sprite_index = spr_nipper +image_speed = 0.15 +} +else +{ +sprite_index = spr_nipper_jump +image_speed = 0 +image_index = 0 +} + +//Look at Mario +if instance_exists(obj_mario) +{ + if obj_mario.x > x + direct = 1 + else + direct = -1 +} + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Draw the Fire Nipper +draw_sprite_ext(sprite_index,image_index,x,y,direct,1,0,c_white,1) + + + + + + + 0 + 0 + 0 + 0.5 + 0.100000001490116 + 0 + 0.100000001490116 + 0.100000001490116 + 0.200000002980232 + -1 + 0 + + 0,16 + 16,16 + + diff --git a/obj_nipperfireball.object.gmx b/objects/obj_nipperfireball.object.gmx similarity index 96% rename from obj_nipperfireball.object.gmx rename to objects/obj_nipperfireball.object.gmx index 6d3c4f6e..a9fc6684 100644 --- a/obj_nipperfireball.object.gmx +++ b/objects/obj_nipperfireball.object.gmx @@ -1,123 +1,123 @@ - - - spr_fireball - 0 - -1 - -2 - 0 - <undefined> - <undefined> - - - - 1 - 603 - 7 - 0 - 0 - -1 - 2 - - - self - 0 - 0 - - - 1 - ///Fire which acts like a hammer - -//Animate -image_speed = 0.15 - -//Gravity -gravity = 0.2 - -//Move up -vspeed = -4.5 - - - - - - - - 1 - 603 - 7 - 0 - 0 - -1 - 2 - - - self - 0 - 0 - - - 1 - ///Destroy below view -if y > view_yview[0] + view_hview[0] - instance_destroy() - -//Correct facing direction -if hspeed < 0 - image_xscale = -1 - -//Speed caps -if hspeed > 2 -{ -hspeed = 2 -} - -if hspeed < -2 -{ -hspeed = -2 -} - - - - - - - - 1 - 603 - 7 - 0 - 0 - -1 - 2 - - - self - 0 - 0 - - - 1 - ///Hurt Mario -with other event_user(0) - - - - - - - 0 - 0 - 0 - 0.5 - 0.100000001490116 - 0 - 0.100000001490116 - 0.100000001490116 - 0.200000002980232 - -1 - 0 - - 8,0 - 8,8 - - + + + spr_fireball + 0 + -1 + -2 + 0 + <undefined> + <undefined> + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Fire which acts like a hammer + +//Animate +image_speed = 0.15 + +//Gravity +gravity = 0.2 + +//Move up +vspeed = -4.5 + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Destroy below view +if y > view_yview[0] + view_hview[0] + instance_destroy() + +//Correct facing direction +if hspeed < 0 + image_xscale = -1 + +//Speed caps +if hspeed > 2 +{ +hspeed = 2 +} + +if hspeed < -2 +{ +hspeed = -2 +} + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + ///Hurt Mario +with other event_user(0) + + + + + + + 0 + 0 + 0 + 0.5 + 0.100000001490116 + 0 + 0.100000001490116 + 0.100000001490116 + 0.200000002980232 + -1 + 0 + + 8,0 + 8,8 + +