V
VL2M STUDIO
Guest
The title says it all. I put effects and they do not show up at all. I think I do not have the files for the effects so that the compiler I take.Can you help me?
explosions,smoke,elipseI think we need more on this. What do you mean by, "Effects"?
So, with that. I think we need to see your code that relates to the effects in question before anyone can help.explosions,smoke,elipse
i think it is not the code.The code should normally work fine.But sure.So, with that. I think we need to see your code that relates to the effects in question before anyone can help.
P.S. You can look up "gms2 effects tutorials" on youtube and see if a video can answer your question.
@Amon I don't think a dislike is really appropriate here. @VL2M STUDIO is a new member and probably new to coding. But, to each their own.
if(hp_ > 1)
{
effect_create_below(ef_explosion, 0, 0, 3,c_white);
}
With a quick glance at the manual. I would suspect the depth being wrong and/or using a "3" for size is breaking the code since the manual says," With this function you can create a simple effect beneath all instances of your room it is actually created at a depth of 100000 . If the effect is anything other ef_rain or ef_snow then you can define an x/y position to create the effect, and the size can be a value of 0, 1, or 2, where 0 is small, 1 is medium and 2 is large. ".i think it is not the code.The code should normally work fine.But sure.
GML:if(hp_ > 1) { effect_create_below(ef_explosion, 0, 0, 3,c_white); }
I made that code to test if the explosions worked. So yeah maybe that code is not good.With a quick glance at the manual. I would suspect the depth being wrong and/or using a "3" for size is breaking the code since the manual says," With this function you can create a simple effect beneath all instances of your room it is actually created at a depth of 100000 . If the effect is anything other ef_rain or ef_snow then you can define an x/y position to create the effect, and the size can be a value of 0, 1, or 2, where 0 is small, 1 is medium and 2 is large. ".
The x & y coordinates may be causing issues as well.
with(other){
effect_create_above(ef_explosion,x,y,1,c_orange);
hp_+=o_weaponry.weapon_power;
}
instance_destroy();
I'm not to experienced using "Other" so, I can't comment on that.I made that code to test if the explosions worked. So yeah maybe that code is not good.
Here is some code I created for a dummy that has as "hp" the dealt damage. This is a code for rocket impact. The code worked before. I did reinstall Gamemaker when I reinstalled Windows. Maybe that is the problem.GML:with(other){ effect_create_above(ef_explosion,x,y,1,c_orange); hp_+=o_weaponry.weapon_power; } instance_destroy();
create:
depth = -10000; // testing purposes. This should be top layer if nothing is drawn in the GUI.
step:
if(hp_ < 1)
{
show_debug_message("HP < 1 , Explosion effects executed and instance destoryed");
effect_create_below(ef_explosion,x ,y 2, 2,c_white);
instance_destroy();
};
Nope.0 results.GML:create: depth = -10000; // testing purposes step: if(hp_ < 1) { effect_create_below(ef_explosion, x, y, 2,c_white); instance_destroy(); };
I don't think its your installation. I've wasted more of my time than anyone else. So, no worries.Nope.0 results.
Something is wrong with my installation. I can feel it. I'll think of a way. Sorry if I wasted your time .I appreciate your help.
if(keyboard_check_pressed(vk_space))
{
depth = -10000;
show_debug_message("HP < 1 , Explosion effects executed and instance destoryed");
effect_create_below(ef_explosion, x, y, 2,c_white);
};
if(hp_ < 1)
{
depth = -10000;
show_debug_message("HP < 1 , Explosion effects executed and instance destoryed");
effect_create_below(ef_explosion, x, y, 2,c_white);
instance_destroy();
};
still no explosionI don't think its your installation. I've wasted more of my time than anyone else. So, no worries.
I did the below code and it works for me.
Try this:
Place this code into the step event of a persistent/existing object and press space.
Adjust the x and y coordinates to your specific needs.
Its not using the hp but, it should be easy to edit the code so it works for what you want.
GML:if(keyboard_check_pressed(vk_space)) { depth = -10000; show_debug_message("HP < 1 , Explosion effects executed and instance destoryed"); effect_create_below(ef_explosion, x, y, 2,c_white); };
Give us(me) all of your code that relates to the effects and the object that "hp" relates to.still no explosion
I understand what you are trying to say. But turns out it's no use .I can give you the project files and try to compile it, to see if it works for you.@VL2M STUDIO I have a feeling that this is getting confusing and/or I'm not explaining it good enough. If that's true, let me know.
Did so.No results.In that new project...did you actually put an instance of that object in the room? And that code, you put it in the step event?
I prefer to let @VL2M STUDIO send me the project that is already set up. This way I can catch an error if there is one. It is likely easier for me to figure out the error than for VL2M to compare bit by bit their project to my version honestly.@kburkhart84 You could also make a new project and place the code into it and get it to work. Then send it to @VL2M STUDIO and have them test it. At that point, if it doesn't work then it's probably their installation/ who knows what.
Likewise. Literally NO changes except what the IDE does due to older version update.It is showing up just fine on my installation of GMS 2.3.1.536.