godot-card-game-framework
godot-card-game-framework copied to clipboard
using "compare_with_owner" or "compare_with_trigger" with KEY_BOARD_POSITION sets the board position to the relevant card
Good If you want to drag a card to a spot and have a card spawn there for example
If the spawned card is directly on top of the owner, then it will hide it as well though.
Hmm, maybe there could also be a spawn_offset key in spawn card that takes a vector2 which it adds for board position. Could be useful for other values that are conditional such as ones based off the viewport and such.
Alternatively a change board position task might be nice. That could follow the spawn card task and not put extra functionality on the spawn card task
Why don't you just use a 'move_card_to_board' on the spawned card?
oh can you use compare_with_owner for the position in move_card_to_board?
Well, no. I was replying to this comment
Alternatively a change board position task might be nice.
I guess what I was thinking was a task to move a card based on where it is. Like add 50 to the X position.
If your name needs it, it is not difficult to extend the scripting engine and add this sort of task. If you feel it needs to be in the core CGF, feel free to send me a PR
That makes sense. I stuff is busy right now but I would like to give back to the project