Jump to content


Photo

Boss Hit Points.


  • Please log in to reply
1 reply to this topic

#1 silverburd

silverburd

    GMC Member

  • New Member
  • 270 posts

Posted 18 January 2010 - 07:47 AM

Can anyone point me in the direction to find out about how to reduce the amount of hit points that I deal out to the boss.I have tried a number of different ways even tried to make a controller life object for him like I have but I seem to be receiving the damage instead .I normally try to find a game that has one or a good tutorial.Any help would be appreciated thank you.

Information about object: obj_blue_boss_final

Sprite: sprite_blue_boss_final
Solid: true
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>

Create Event:
execute code:

alarm[0]=irandom_range(30,90);

set the health to 100

Alarm Event for alarm 0:
execute code:

alarm[0]=irandom_range(30,90);

create instance of object obj_blue_serpent_missile at relative position (0,0) with speed 10 in direction 180

Collision Event with object obj_bone_missile:
set the health relative to -10

Other Event: No More Lives:
execute code:

sound_stop(sound_blue_boss)

play sound snd_player_explodes; looping: false
change the instance into object obj_blue_boss_explode, not performing events
sleep 500 milliseconds; redrawing the screen: true
set the score relative to 500
destroy the instance
for other object: destroy the instance
  • 0

#2 silverburd

silverburd

    GMC Member

  • New Member
  • 270 posts

Posted 18 January 2010 - 08:08 AM

Can anyone point me in the direction to find out about how to reduce the amount of hit points that I deal out to the boss.I have tried a number of different ways even tried to make a controller life object for him like I have but I seem to be receiving the damage instead .I normally try to find a game that has one or a good tutorial.Any help would be appreciated thank you.

Information about object: obj_blue_boss_final

Sprite: sprite_blue_boss_final
Solid: true
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>

Create Event:
execute code:

alarm[0]=irandom_range(30,90);

set the health to 100

Alarm Event for alarm 0:
execute code:

alarm[0]=irandom_range(30,90);

create instance of object obj_blue_serpent_missile at relative position (0,0) with speed 10 in direction 180

Collision Event with object obj_bone_missile:
set the health relative to -10

Other Event: No More Lives:
execute code:

sound_stop(sound_blue_boss)

play sound snd_player_explodes; looping: false
change the instance into object obj_blue_boss_explode, not performing events
sleep 500 milliseconds; redrawing the screen: true
set the score relative to 500
destroy the instance
for other object: destroy the instance



I removed the set the health action then made an variable instead.
SOLVED.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users