Enemy ai behaviours

is making every enemy platformer object cost performance or is it pretty much same with adding force with variables?

Hi, Lion!

Lets think with an example. If you have 100 instances with the behavior platform in your game and only one object with Object Platform Behavior will be about 100 tests about colisions, right? For each object added with the Object Platform Behavior will increase more 100 tests! So, in general I think is better for performance to use adding force, but of course it depends of your events too. Maybe it’s interesting to leave enemies with platform movement only for those who will have a more accurate AI and bosses. That’s my opinion.

1 Like

Thanks for answer, i didnt think like that. So Maybe for spesific enemies and for flying enemies adding y level check might be better for performance.