The issue is that the pineapple is constantly "not cooking" so this event runs every tick. You could track that with an instance variable.
Ah! It didn't occur to me the condition was every tick, but I guess it makes sense C3 would check if sprites are overlapping every tick. But why apply that to the actions? I can't find any documentation explaining this. Even the "Is overlapping" description implies only one test is going on. "Object: Select the object to test for overlap with." Shouldn't "test" be plural?
DiegoM If it's not too much trouble, is there anyway to change the "Is overlapping" description to "Object: Select the object to test every tick for overlap with." This would be very helpful to noobs like me to know every tick is being applied to the actions.
Pineapple is overlapping flame -> set pineapple.cooking to true
Pineapple is not overlapping flame & pineapple.cooking = true -> set animation not cooking, set pineapple.cooking = false
On animation not cooking end -> set animation to default
Something along those lines
That works! I felt like I already tried that before, but I must've made some mistake. Then I thought since I was already checking if sprites are overlapping with a function, I could work the sprite animation actions in there too, but it works better separated. I really appreciate your help and I learned something new about the overlapping sprites. Thank you!
rozpustelnik I tried that, but something about it didn't work and I've long forgotten why. I think maybe because I was using multiple sprite overlaps and it needed to be triggered more than once.
igortyhon Thanks, but
WackyToaster helped me solve the animation issue. Can you help with something else though? I have a function counting how many sprite are overlapping, but once you overlap the sprites and then remove them, the count never goes back to 0. What am I doing wrong?
OverlapFunction.c3p
I noticed you like tanks a lot. If you don't mind me asking, were you once a tanker?