Hello, I’ve been trying to get this function to work for 2 hours now. Even though it might sound silly, all I want to do is create a different reaction to a button click depending on whether a variable is greater or smaller than a certain value.
In summary: When the button is clicked and the number of tomatoes is less than 50, a shake animation and a fail sound should play. However, if the number of tomatoes is greater than 50, a different sound and possibly a different animation should play.
I’ve tried everything I could think of, including timers, boolean variables, etc., but nothing has worked correctly. The button always triggers the fail event, even when the number of tomatoes is more than 50 and I click on it. I would appreciate it if someone could help me, as I just started using GDevelop last week and I’m out of ideas to solve this problem.
I apologize if this question has already been answered, but I couldn’t find anything related.