EpicMcDude
Member
Hey all,
I'm new to programming and was following a tutorial on how to make blood. Of course, this tutorial to show the blood, the particles look great and it triggers when I click the mouse as a Step even on the object Blood Controller.
var count = random_range(4,32);
if(mouse_check_button_pressed(mb_left)){
for(var i = 0; i<count; i++){
instance_create_depth(mouse_x,mouse_y, -10,obj_Blood);
}
}
But how do I replace this, to trigger upon killing an enemy? I've searched and can't find anything, sorry not sorry for the noob question!
Thanks!
I'm new to programming and was following a tutorial on how to make blood. Of course, this tutorial to show the blood, the particles look great and it triggers when I click the mouse as a Step even on the object Blood Controller.
var count = random_range(4,32);
if(mouse_check_button_pressed(mb_left)){
for(var i = 0; i<count; i++){
instance_create_depth(mouse_x,mouse_y, -10,obj_Blood);
}
}
But how do I replace this, to trigger upon killing an enemy? I've searched and can't find anything, sorry not sorry for the noob question!
Thanks!
Attachments
-
111.1 KB Views: 6