External Exam Download Resources Web Applications Games Recycle Bin

falling spikes | gml





objSpike Create

gravity = 0;

objSpike Step

if collision_line(x,y,x,y+view_hport[0],objPlayer, false, false){
	gravity = 0.4;
}

if (y > room_height){
	gravity = 0;
	speed = 0;
	y = ystart;
}