How to structure double-click pathfinding interaction with animation in Construct 2?

Not favoritedFavorited Favorited 0 favourites
  • 6 posts
From the Asset Store
Click! Click! 136 click sounds for your video games or media projects
  • Hello everyone,

    I'm working on a Construct 2 game and I'm having trouble with a specific mechanic. I'd appreciate if someone could show me the proper way to structure this logic.

    **What I'm trying to achieve:**

    1. Player double-clicks on a campfire object

    2. Player pathfinds to the campfire

    3. When player arrives, plays a "harvest" animation

    4. After animation finishes, campfire lights up and player can move normally again

    **The problem:**

    Currently, when the player arrives near the campfire and I double-click again, the animation doesn't play, the campfire lights immediately, and the player becomes frozen and won't respond to mouse clicks.

    **What I need help with:**

    Could someone demonstrate or explain the correct event structure for this type of interaction? Specifically:

    - How to properly trigger an animation after pathfinding arrives

    - How to prevent the player from moving during the animation

    - How to re-enable normal movement after the animation completes

    - How to handle the variables (like IsFarming, IsBusy) to prevent conflicts with normal click-to-move

    I have a working click-to-move system, but adding this double-click interaction is causing conflicts.

    Any examples or guidance would be greatly appreciated!

    Thank you!

  • Here:

    Edit: oh forgot to add "move along path"

    so

    Player - on pathfinding path found → Player - move along path

  • Thank you, Radkampfwagen, for taking the time to respond to my question — I really appreciate it! However, that’s not quite what I meant.

    I'm trying to achieve a movement system where the player moves while holding the right mouse button, and the animation changes based on the direction — using only WalkNorth and WalkSouth, with mirroring depending on the angle.

    If you have any ideas or suggestions on how to approach that, I’d be very grateful!

    I'm trying to create a movement system similar to Ultima Online, where the player moves while holding down the right mouse button and stops when it's released.

    The biggest challenge I'm facing is with the animations. I only want to use two walk animations: WalkNorth and WalkSouth.

    - When the player moves down, it should play WalkSouth.

    - When moving up, it should play WalkNorth.

    - When moving left or right, it should play WalkSouth, but mirrored depending on the direction.

    - When moving diagonally upward, it should play WalkNorth, also mirrored based on the direction.

    This logic has been holding me back for days, and I'm starting to feel discouraged.

    Here’s the link to my failed attempt:

    drive.google.com/file/d/1iMbS9mwGt_bKA7Z5pG-UqAB1e3j_9B2K/view

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not sure how to download those files and open on C3

    click

    Menu → Project → Save As → Download a copy

    then upload to Gdrive and copypaste link here

  • this what you want?

    this will ofcourse work only if you have scroll-look behaviour

    Good?

  • Okay, got it!

    I gonna try this new one later today :D

    Thank you so mutch!

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)