fushiginek0
Member
I have a game where i have food as objects that counts as 'bites' when you click them and they change into their bite sprites, and when you take a certain amount of bites and the food is all gone blood splatters animate into the screen (don't ask) in an animation that only plays once, and then once the blood is gone, the food all replenishes (image_index = 0) and their 'bite' count reverts to 0. however, the food items are no longer interactive after they're all replenished. can anyone pls help?
here's my code for the eating animation for food (left pressed)
image_index += 1;
bite += 1;
if (image_index = 0) {
bite = 0;
}
here's the code for the blood splatter (blood splatter is an object here)
if (food.bite == 76 && image_speed = 0) {
image_speed = 1;
} else if (floor(image_index) == last_frame) {
blood_splatter = true;
} else { image_speed = 0;
}
and here's the code for the food in step event
if (blood_splash.blood_splatter = true) {
bite = 0
image_index = 0;
}
here's my code for the eating animation for food (left pressed)
image_index += 1;
bite += 1;
if (image_index = 0) {
bite = 0;
}
here's the code for the blood splatter (blood splatter is an object here)
if (food.bite == 76 && image_speed = 0) {
image_speed = 1;
} else if (floor(image_index) == last_frame) {
blood_splatter = true;
} else { image_speed = 0;
}
and here's the code for the food in step event
if (blood_splash.blood_splatter = true) {
bite = 0
image_index = 0;
}