Nice to meet you all. Today is my first day here, I been learning GDevelop for about 3 weeks and came across an issue that I cannot solve.
Player press the attack key.
The player’s weapon hits two planters [or cubes] that are next to each other.
The player weapon detects multiple cubes were hit.
Two cubes are destroyed instead of one.
How can I stop multiple cubes from being detected?
I have the code to use the condition Trigger Once but Gdevelop activates the code multiple times and removes both objects.
I did a query to detect how many objects were hit by the player’s weapon. By storing the number of weapons hit in a variable. That variable tells me only one item was hit, despite two items being deleted. I would post more screenshots but a new account is only allow to post one. Each planter or cube have unique ids that I can reference, if that’s helpful.
Does anyone have any ideas?
Thank you for your help.