GopalPML's Recent Forum Activity

  • winkr7

    I fixed it! There were no mistakes in the functions. Instead, there were no eventsheet chosen for the layout. I added the eventsheet in the Properties > EventSheet and Now its working!

    Thank you for trying to help!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I fixed the mistake in event 2, however, the animation still does not play when I drag and move the watering can over the plant!

  • 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 :

  • Hello 2009antz2009,

    I managed to fixed the issue I was having. It it now working as expected! Thank you for your reply!

    Here's a screenshot of my eventsheet :

  • I'm working on a 2D game in Construct 3, and I'm encountering some challenges with a level. In this level, I have a plastic bag sprite that should fall from the top of the screen, and I also want players to be able to drag and drop the plastic bag into the bin.

    I have implemented the falling behavior for the plastic bag, and it is descending vertically as intended. However, I'm facing difficulties in achieving the desired interaction when the plastic bag touches the bin_plastic. I want the plastic bag to be destroyed upon collision with the bin, but it's not working as expected.

    Furthermore, I have added the Drag & Drop behavior to the plastic bag, allowing players to drag and drop it into the bin. However, I'm having trouble combining the drag-and-drop functionality with the collision detection for the destruction of the plastic bag.

    I have tried using the "On collision" event between the plastic bag and bin_plastic, but it doesn't seem to trigger the desired action. I have also checked the collision polygons and bounding boxes, but there is no visible overlap during the drag-and-drop interaction.

    I would greatly appreciate any guidance or suggestions on how to properly implement both the falling behavior and the drag-and-drop interaction in Construct. Thank you!!

GopalPML's avatar

GopalPML

Member since 6 Jun, 2023

None one is following GopalPML yet!

Trophy Case

  • 1-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

3/44
How to earn trophies