i have Sprite called 'Slot' i copied few times in layout for a simple inventory.
Slot have default animation form 0 to 3
0-empty
1-banana
2-apple
3- mixed salad
so player is clicking on slot and after LMB click animation frame is +1 RMB -1 (to change image of fruits)
Question how can i make A CONDITION
when i see in inventory Slot.animation frame is 1 (banana) and slot.animationframe is 2 (apple) play audio?