UE 4 - Unreal Engine 4 - 2D SideScroller
Hello all
Wanted to see if anyone might be able to assist.
I am currently helping my cousin develop his 2D side scroller.
Most the functions have been developed, however I recently hit a wall of frustration.
Unreal engine comes with a built in AI system, after some testing and playing around I could never get the AI to actually respond. I was able to debug that the AI systems where giving instructions but still nothing happened.After some more research it seems that Unreal stopped focusing on the 2D aspect of the engine and hence why i cannot get AI to work. - I could be totally incorrect here, let me know if I am.
So I abandoned the concept of using the built in system and went full onto using collision detection to handle the current behavior of the AI. In it's current form it works, but its so stupid as it was literal code to do checks and react. Now my cousin wants to expand the capabilities of the AI and I'm feeling overwhelmed with what he wants.
1. He wants the AI to jump over player and attack mid air. - Its problematic, the system I built wont handle it(As i did not start with a enum to give a state of behavior). The tree is a literal true/false tree.
Does anyone perhaps have advice on this?
Wanted to see if anyone might be able to assist.
I am currently helping my cousin develop his 2D side scroller.
Most the functions have been developed, however I recently hit a wall of frustration.
Unreal engine comes with a built in AI system, after some testing and playing around I could never get the AI to actually respond. I was able to debug that the AI systems where giving instructions but still nothing happened.After some more research it seems that Unreal stopped focusing on the 2D aspect of the engine and hence why i cannot get AI to work. - I could be totally incorrect here, let me know if I am.
So I abandoned the concept of using the built in system and went full onto using collision detection to handle the current behavior of the AI. In it's current form it works, but its so stupid as it was literal code to do checks and react. Now my cousin wants to expand the capabilities of the AI and I'm feeling overwhelmed with what he wants.
1. He wants the AI to jump over player and attack mid air. - Its problematic, the system I built wont handle it(As i did not start with a enum to give a state of behavior). The tree is a literal true/false tree.
Does anyone perhaps have advice on this?


AI_State2.JPG
1004 x 654 - 98K


AI_Branch.JPG
502 x 483 - 63K


AI_MovementFunction.JPG
1126 x 812 - 213K
Comments
I've been working a lot in UE4 over the past 2 years but I have unfortunately have not delved into AI at all yet.
I assume you have checked out the AI stream on the UnrealEngine youtube channel?
Best of luck to you, and please keep us updated.
Karl
That's great, really love the engine myself been using it since the 4.5.
Yeah a few times, however they never speak about it in a 2d environment(Let me correct that, they never use a tilemap as a map for gameplay, they always use 3d type environments), always 3d.
Hmmm. Just found this one https://answers.unrealengine.com/questions/352796/how-do-i-move-simple-ai-in-a-2d-space.html will attempt the solution and post back.
Thank you for the reply.
Yeah I am really enjoying the engine as well. Awesome I hope that works for you!
Good luck and have an awesome day!
Karl