Hello, I want to ask how to make sure that the objects (cards) that I drag onto the board can attack or move 1 tile around the object and can also be attacked by other objects. This is like a chess game but I input the objects

  • Toxe replied to this.

    LoveB Can you share a video or some screenshots? The question is way too broad and unspecific and you should try to boil it down to some concrete problems. At this point all we can do is guess what you mean.

      What’s the question? How far along did you get, where are you stuck?

        Hello, I'm sorry I think I attached the video before, here are some clips on youtube for my card game progress

        I want to make the aiming system to detect the tail map. ( I follow some youtube tutorials the Slay the Spire Clone, and I take the state machine from there and implement it in my card game). But the problem here is I want to know how can i detect the tile map (board) from my aiming system and the card is changed into a token and disappears after placement or released. Thank You
        Here's also the screenshot of my card_released_state script
        and the card_target_selector also

        Toxe

        axolotl

        Also here my second version

        The problem here i think is the mouse position, from the video i click the card in the center and then drag it into the board tile map it shows a good one (in the center of the grid) but when i click the card above or below the card center it gonna mess up like on the video.

        • Toxe replied to this.
          5 days later

          LoveB Is this still an issue or have you resolved this?

            Toxe
            still an issue for me, I try to solve it but I think i need to go back to the godot basic and try to dig more about the tile map and gdscript.

            • Toxe replied to this.

              LoveB Can you upload your project here (without the .godot folder)?