How to make a flying AI that follows the player?

Have you looked into Unreal Engine’s AI features? There are behaviour trees with which you’ll have an easier time implementing AI. May I suggest you have a look at this: https://docs.unrealengine.com/en-US/Engine/AI/BehaviorTrees/QuickStart

As the title says, how I make an AI (like a sphere) that follows the player in the 3d sidescroller template? I’m rather new to Unreal Engine and using blueprints but I’ve done some things by looking at other posts and questions that other people have had before. As for now, The “AI” is not moving at all or doing anything interesting. Here are some pictures of what I’ve done so far:

The first picture is the actor and the second is the controller class. I know I’ve done something wrong, would appreciate any help.

Wow, making an “AI” in UE4 was much more in depth than I thought. This might help.

if you are just aiming to have a very simple AI that follows the player… the following solution doesn’t need AI

I’d just use a spring arm setup… but put your AI character on the end of it. You can put the AI in your Player Character BP, use a separate AI Rig (with AI mesh component and spring arm component) that is a child of your Player Character, or just on Tick constantly set the AI Rig location at your Player Character.

The length and relative rotation of your Spring Arm component, along with Socket/Target Offset will give you the offsets that you need.

VERY simple to set up, VERY performance efficient and the spring arm position lag & rotation lag will provide really nice smoothing

Agree with the above…unless your “sphere” is actually going to do something “intelligent” it doesn’t need to be “artificially intelligent” (AI). Following the player can be easily done with a spring arm or parenting etc.

Sorry I wasn’t clear enough in my question. What I want is a “sphere” or something similar that can be placed anywhere in the 3d sidescroller world and when the player comes close enough the sphere will engage and move to the player.

I wasn’t clear enough in my question. What I want is a “sphere” or something similar that can be placed anywhere in the 3d sidescroller world and when the player comes close enough the sphere will engage and move to the player.