I have started a 2 player game/project in which I need "enemies" (AI), to move towards the players positions. Does anyone know how to do this?
Thanks in advance
@Tim J That's a deep subject and, while it may seem simple, is far from it.
You might take a look a some of the tutorials on Unity or Unreal Engine Youtube channels and dig into this free ebook:
I've watched unity tutorials on youtube which seem somewhat simple, but can't figure out how to code it into xojo
This is the link to her course :
I know it is not Xojo or Basic but believe me, the methods can be easily converted to Xojo. Also before coding the actual AI method, she explains it in great detail. I bought and by all her courses because they are very good. On this moment there is a sale where you can get this course for 9.99 USD but you need to be fast.
Also the free ebook about Artificial Intelligence in game suggested by Tim Jones, explains the Minimax method.
You are not the only one struggling with this subject, I also have problems understanding it. But by learning and being determined you will succeed, like I did. As you can see here in your thread, there are already many people willing to help you.
Because during the last days I gave several times like I did here a suggestion to other applications or in this case Udemy. I want to point out that I just want to help and not want to do the marketing and sales for them. I just give my genuine opinion without receiving any reward or benefit.
I hope you find a way to implement AI in your game. Xojo is certainly a good tool which can help you with this.