I need to know how can I make an artificial intelligence for a platform game like "Starbound" or "Terraria", where we have multiple instances of the same object and these interact individually.
I want to do something like the example below, but with several objects (enemies) that interact with the player individually.
Please login to see this link.
The example is just demonstrative.
I really appreciate any help.
(sorry for my english)