I’m making a 2d platformer. In this game, I want the bullet to be destroyed when hitting any collisions. The bullets are currently just flying past in front of the collisions. How could I fix this?
Here are some screenshots:
I’m making a 2d platformer. In this game, I want the bullet to be destroyed when hitting any collisions. The bullets are currently just flying past in front of the collisions. How could I fix this?
Here are some screenshots:
You need to add an event onComponentHit, to find this you need to right click on the component (inside your blueprint) → add event → add onComponentHit.
This is also the technique you’ll use to know which actor as been touch.
Let me know if is that you needed and have a good day!
I tryed to do that with the flipbook. But it still just flies past collisions. Do I need to connect something else to the event?
Nevermind, I just needed to make a capsuleComponent and do the same trick. Problem solved