u/Glockometric

Pls Help, I'm losing my mind lol (coding/programming) issue

Pls Help, I'm losing my mind lol (coding/programming) issue

For some reason, with a certain code, I can get my "Homing" asteroids to chase my player, no problem... when I drag it manually into the map via the editor. When I hit play, it chases. "Target Actor: BP_PlayerController_C_0"

However, when try to spawn it in via my "asteroid boss" when it's hit, it won't acquire the correct target, and it won't chase. "Target Actor: BP_PlayerController0"

Here's my coding: BEWARE it's messy right now, my code tends to get messy during development, and I clean it up before shipping.

My Homing Asteroid posted by anonymous | blueprintUE | PasteBin For Unreal Engine

My Boss Asteroid posted by anonymous | blueprintUE | PasteBin For Unreal Engine

Does anyone know why I'm getting this behavior, and what I could do to fix it?

Thanks for reading..

u/Glockometric — 3 hours ago
Homing Asteroid Odd Behavior

Homing Asteroid Odd Behavior

Hi All.

In my 2D Asteroid Remake, I am making some homing asteroids. I've got some that work great when dragged into the world, and then started via editor. They chase the player all day.

But when I make them spawn dynamically off my boss, the homing asteroid is not chasing.

The one that I drag into the world acquires "Target Actor: BP_Player_C_0." The one that spawns off the boss asteroid acquires "Target Actor: BP_Player0." Why are they acquiring different targets? Can anyone guide me how to get the behavior I want?

Thank you for reading.

Code:

https://blueprintue.com/blueprint/uhlknxty/

https://blueprintue.com/blueprint/jqyql32f/

u/Glockometric — 8 hours ago