# I am making 2d game and got a problem

**URL:** <https://forums.unrealengine.com/t/i-am-making-2d-game-and-got-a-problem/2168853>\
**Category:** Game Production\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [December 4, 2024, 2:33am UTC](https://forums.unrealengine.com/t/i-am-making-2d-game-and-got-a-problem/2168853 "2024-12-04T02:33:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AiBoleche](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AiBoleche](https://forums.unrealengine.com/u/AiBoleche)\
**Post date:** [December 4, 2024, 2:33am UTC](https://forums.unrealengine.com/t/i-am-making-2d-game-and-got-a-problem/2168853/1 "2024-12-04T02:33:12Z")

</div>

here the cast to AI\_enemy is being failed , my character is shooting the fire , enemy’s health is also being low and some times my enemy or the character become invible in the game after a dead (For e.g.- if my character got hit by enemy’s hit box then when it respawn sometimes enemy become invisible or sometimes both(character,enemy) become invisible i have to make the character or enemy dead or close the window )  
character\_Shoot Blueprint

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/3/f53c086ca8827aa58d0e9b680abd8ee01f4584aa.png)  
Projectile blueprint  
 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/e/e2ee13d3b3c473685097eeffa62188a89bd7bf37.png)  
enemy health blueprint  
 ![3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/1/ca11c84fef7ad4d937e8a6b40a88b77425f64627.png)

---

<div class="post-metadata">

**Author:** ![GarthHere](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarthHere](https://forums.unrealengine.com/u/GarthHere)\
**Post date:** [December 4, 2024, 7:34am UTC](https://forums.unrealengine.com/t/i-am-making-2d-game-and-got-a-problem/2168853/2 "2024-12-04T07:34:30Z")

</div>

The cast in the shoot action won’t pass, why u applying damage in the shoot action and the projectile hit, use TAG’s to filter not casts.

---

<div class="post-metadata">

**Author:** ![AiBoleche](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AiBoleche](https://forums.unrealengine.com/u/AiBoleche)\
**Post date:** [December 5, 2024, 4:38am UTC](https://forums.unrealengine.com/t/i-am-making-2d-game-and-got-a-problem/2168853/3 "2024-12-05T04:38:31Z")

</div>

ok thank you

---

<div class="post-metadata">

**Author:** ![AiBoleche](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AiBoleche](https://forums.unrealengine.com/u/AiBoleche)\
**Post date:** [December 5, 2024, 4:39am UTC](https://forums.unrealengine.com/t/i-am-making-2d-game-and-got-a-problem/2168853/4 "2024-12-05T04:39:08Z")

</div>

there is still the invisible character problem but it happens sometimes
