Trying to make a projectile attack a enemy pass through and attack another WITHOUT invincibility frames. i came up with a way to damage multiple but not to do it again.
Any help would be nice!
:D
I’m not the expert, but I think you need a trigger once in that dart is in collision event. Otherwise it’ll count every frame that the dart is in collision with the enemy and will keep subtracting health from the bloom and the enemy (but maybe that’s what you mean by invincibility frames, idk =P) Hope I helped in some capacity =D
Yeah that’s the problem if i set them to once if there clumped it will only attack one and pass through the rest ![]()
Thanks for the input regardless ![]()
Oof, maybe a for each event? So that it tracks for each instance of bloom?
Tried it before doesn’t do anything. :<
just does what it would do without it.
ooh okay let me recreate and test around
My bullet health is 4, so it was hitting four frogs before being destroyed, and the frogs had four health (also the blue stuff is just movement since I hate the arrow keys
The trigger once didn’t break with the piercing?
was it able to pass through one enemy and only deal one damage then pass to the other and deal one damage again.
if so i wonder what im doing wrong i swear i used that code before and got issues. either way I’ll try it. ![]()
i hate emojis i wanted to type =p but with dots ;o;
yep. I think its the fact that you aren’t changing your beenhit variable back to lets say 0. So it stays 1 and you can’t attack again (or maybe I’m wrong TT)
can i see the whole code? did you use (For every) or is everything shown everything needed.
of course let me get it
Wierd! maybe i need to update my gdevelop. it was not possible to use trigger once and have it pierce correctly it would always hit once and then fail to hit when they’re clumped. aka i would need them to be spaced out to work.
I’m sorry I can’t show it, the forum doesn’t like .webm
Oh! my code doesn’t work with clumping either, let me edit it =P
cool! does it work with both spaced and clumped?
yep, just edited =D (extra letters)