Struggle Attaching Collision to an Object that is Following the Player
Posted: Thu Mar 10, 2022 2:03 am
Hello all,
I apologize for asking for help again, but I have spent about 2 hours trying different methods of attaching the collision box to the object following the player and I can't seem to figure it out
I have tried replicating what I had set up for the player's collision, but it did not work out. I tried messing with some of the code of the object following the player and that didn't work. So I am stuck once again and am requesting some help
For context, I'm trying to make this an enemy that'll be constantly following the player until the player attacks it and I plan to have multiple objects spawn (with different sprites) and follow the player
Attached is the file of the game and what I currently have so hopefully this great community can help me once again
I apologize for asking for help again, but I have spent about 2 hours trying different methods of attaching the collision box to the object following the player and I can't seem to figure it out
I have tried replicating what I had set up for the player's collision, but it did not work out. I tried messing with some of the code of the object following the player and that didn't work. So I am stuck once again and am requesting some help
For context, I'm trying to make this an enemy that'll be constantly following the player until the player attacks it and I plan to have multiple objects spawn (with different sprites) and follow the player
Attached is the file of the game and what I currently have so hopefully this great community can help me once again