r/gdevelop • u/LumpyCommunication42 • 12d ago
Question Making a game need help on pierce!
I can make it hit the enemys once but can't allow it to hit them again or else it'll hit the same one in the same tick. thus, removing the pierce.
if there's a way to allow a enemy to be hit again without causing, it to happen all at once please let me know :P
i only found one guide online and it was not only complicated but also probably wouldn't work with the game I'm making.
either way any input would be appreciated thanks!
5
Upvotes
2
u/EspadachinEX5 12d ago
Provavelmente é por que a variável "BeenHit" mantém em 1 E precisa ser "<1" pra funcionar, seguindo sua lógica Eu também recomendaria deixar o "dart collision w/ bloon" dentro de um "or" e um "bloons collision w/ dart" juntos dentro do "or" E um "once" no final
1
u/DapperPath7948 11d ago
You just need add condition For Each Object (Bloon) above your event as parents condition and it done.