Game Maker Studio: How to Create getting Hit & Blinking.
Visit my website: https://michaelcolver.weebly.com/
GMX File: https://bit.ly/2McoTrq
Gamemaker Game Programming Course link: https://www.youtube.com/watch?v=iLH7jaK2Oe4
Direction degrees for weapon fire: https://bit.ly/33Od40y
Object shots in all directions video: https://www.youtube.com/watch?v=Zi7B_yFubP8&t=26s
obj_player
Events:
Create
Actions:
invincible=0 //take damage 0
Events:
Alarm 0
Actions:
invincible=0
Events:
Alarm 1
Actions:
if image_alpha=1.0 {
image_alpha=0.3
}
else {
image_alpha=1.0
}
if invincible=1 {
alarm[1]=8
}
if invincible=0 {
image_alpha=1.0
}
Events:
Collision with obj_badfire
Actions:
if invincible=0 {
with other {
instance_destroy()
}
///Player takes damage
invincible=1
alarm[0]=90
alarm[1]=1
}
Other Videos By MC Designs
2019-12-07 | Game Maker 8.1: How to Create a Outside Sky with Rain. |
2019-12-01 | Game Maker 8.1: How to Create Animated Torches on the Walls & Adding Monsters. |
2019-11-24 | Game Maker 8.1: (Part 3) How to Create Bad Guy, Firing Weapon. |
2019-11-24 | Game Maker 8.1: (Part 2) How to Create Bad Guy, Firing Weapon. |
2019-11-24 | Game Maker 8.1: (Part 1) How to Create Bad Guy, Firing Weapon. |
2019-11-16 | Game Maker 8.1: How to Create Cell Door PNG, Fire Pit, Load Game, & Favicon image. |
2019-11-09 | Game Maker 8.1: How to Move through Walls, & Create you're own Fog Areas. |
2019-11-02 | Game Maker 8.1: How to Move to the Next Room, Weapons, & Ammo Count. |
2019-10-26 | Game Maker Studio: How to Show Final Hit Effect for Player & Boss, before Game Ends. |
2019-10-19 | Game Maker Studio: How to Collect Partial or Full Health. |
2019-10-12 | Game Maker Studio: How to Create getting Hit & Blinking. |
2019-10-06 | Game Maker Studio: How to Create a Rotating Moving Sun & Border Walls. |
2019-09-21 | Game Maker Studio: How to Hide & Appear, using a Mask Code. |
2019-09-21 | Game Maker Studio: How to Hide Player, without getting Hit by Weapons. |
2019-09-15 | Game Maker Studio: How to Reduce on File Size & Shortcuts. |
2019-09-07 | Game Maker Studio: How to Create a Shader Shadow Effect. |
2019-09-01 | Game Maker Studio: How to Create Follow Movement, to Strike Object, in a Perfect Location. |
2019-08-25 | Game Maker Studio: (Part 2) How to Master Boss Movements & Two Custom Health Bars. |
2019-08-25 | Game Maker Studio: (Part 1) How to Master Boss Movements & Two Custom Health Bars. |
2019-08-11 | Game Maker Studio: How to Flip Sprites, Die, & Keyboard, Mouse Press. |
2019-08-03 | Game Maker Studio: How to Create Simple Snow, Rain or Hail, background. |
Tags: pc
windows
computer
blink
hit
weapon
learn
teach
how
game
maker
studio
code
show
android
device
instance
object
move
stop
direction
start
go
dir
var
place
myspeed
speed
create
if
invincible
alpha
image
else
alarm
destroy
other
with
damage
player
opacity
collision