bananapantsu88
Member
Hello, I have had another problem, you see, when my character shoots and his shot collides with the save object, I did it in such a way that the image index of the save object becomes its second value (which is 1, that is, the default value is 0), giving it a green color, indicating that a save occurred (the default color is red btw as the idle color). The problem is that I want, after a certain amount of time (like one second), the save object goes into is idle state, that is, the image_index index returns to 0. I have an idea to use the alarm state, but I think it is far-fetched. Can anyone help me with the code?
Here it is btw:
Inside oBullet (bullet object) events: On collide with oSave (save object) event:
The global values are as if I die or press the restart button, I appeared on the save object, a sort of checkpoint.
Here it is btw:
Inside oBullet (bullet object) events: On collide with oSave (save object) event:
GML:
with (other)
{
if (image_index == 0) image_index = 1
global.numSpawnX = x;
global.numSpawnY = y;
}