Struggle Attaching Collision to an Object that is Following the Player

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
DoggylovesLove2D
Prole
Posts: 6
Joined: Tue Mar 01, 2022 4:18 pm

Struggle Attaching Collision to an Object that is Following the Player

Post by DoggylovesLove2D »

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 :awesome:
Attachments
MyGame2 - Copy (2).zip
(557.58 KiB) Downloaded 326 times
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 13 guests