J.Lucas's Forum Posts

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes mate, I've told that I'm using Cs2 xD

    But anyway, thank you so mutch for your help!

  • dop2000, Thank you so mutch for your reply and exemple! This method is for cs3, I'm using cs2, but i think i will buy cs3 and try it my self, thank you :)

  • Hi everyone! I'm trying to build a drag-and-drop system in Construct 2 where coins can be stacked visually and counted logically.

    Here’s what I want to achieve:

    When the player drags one coin sprite and drops it on top of another coin of the same type, the system should:

    Add +1 to a variable (e.g., CoinCount) on the receiving coin.

    Change the animation frame to visually represent the stack (e.g., 2 coins, 3 coins, etc.).

    Continue updating the count even after the frame reaches the maximum (frame 5), but stop changing the frame beyond that point.

    So for example:

    Frame 0 = 1 coin

    Frame 1 = 2 coins

    Frame 2 = 3 coins

    Frame 3 = 4 coins

    Frame 4 = 5 coins

    Frame stays at 4 even if CoinCount goes beyond 5

    The dropped coin should be destroyed after stacking, and only the receiving coin should update.

    I’ve tried using On DragDrop drop, Is overlapping, and Pick nearest, but I’m struggling to get the picking and frame logic working correctly.

    If anyone has a working example or can guide me through the correct event structure, I’d be super grateful!

    Thanks in advance 🙏

  • You do not have permission to view this post