Hi everyone,
I'm working on a 2D game. I'm facing an issue with the Drag & Drop behavior and animations. Here's what I'm trying to achieve:
I have two sprites: "watering_can" and "plant."
Both sprites have the correct animations set up. The "watering_can" has an animation for watering, and the "plant" has "plant_dry" (1 frame of the plant dry) and "plant" (animation from dry to green/healthy).
The "watering_can" has the Drag & Drop behavior, and the "plant" has the Solid behavior.
On start of layout, the "plant" animation is set to "plant_dry" (play from beginning).
When the "watering_can" collides with the "plant," the "plant" animation should change to "plant" (play from beginning).
If the "watering_can" is moved away from the "plant," the "plant" animation should go back to "plant_dry" (play from beginning).
However, when I play the game and drag the "watering_can" over the "plant," nothing happens. The animations don't change as expected.
I've checked the collision polygons, animation names, and sprite behaviors, but I can't seem to find what's causing the issue.
Any help or suggestions on what I might be doing wrong would be greatly appreciated!
Thank you in advance!! I have attached a screenshot of my eventsheet here :