kidswithcrowns
Thank you. That makes sense, but I still don't know what the next steps are to allow P1 to take gun when they are overlapped.
(these are probably all wrong approaches) - I tried taking out the destroy, but it would just spawn the gun everytick. I tried set weapon position Player.ImagePointX(0), Player.ImagePointY(0), but it would jump between players randomly.
What do I need to do next, would you be able to give me an example?
Thanks in advance!
Sure!
You have the right idea with taking the weapon. Any of your methods would work. The part that is making it act weird is the condition "Player on collision with Weapon". Every time you give the weapon to the player, it's re-colliding with the player and retriggering the collision
There are many ways to solve this, and they all involve making it so the "On collision" trigger only fires if the weapon is being picked up
one way is to give the weapon family a boolean called "equipped"
then add a condition to the collision event that checks if the weapon is NOT already "equipped" (you can right click an event and click invert)
if it's not "equipped", go ahead and spawn a weapon on the player and immediately set the weapon's "equipped" bool to true so it doesn't trigger the collision event again
ufile.io/84fuklb7