Enemy AI without using bullet (link me)

0 favourites
  • 5 posts
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • I have a 2d platformer game, and I want to make an AI for one of my enemy's that doesn't use th bullet add-on. I want it to follow player, jump when it gets to ledge, and when it can't see player I want it just to wonder back in forth. I was also wondering how you could spawn it, where it would come out of a cave. I want it to only spawn 10. I already came up with the instance variable that starts at 10 and takes away one every time it spawns one. But I do t know how to make a censer that knows when they are all dead. Plus when I set it to spawn it doesn't work. The main focus is the AI though. So please give me a link to one already made, and if there isn't one already made that meets those requirements please tell me how to do it.

  • If you use the beginners platform tutorial it goes over how to do this. You put invisible sprites in the world and have the enemies react to them by turning around or jumping, etc... You use the platform behavior and to get them to move you use "Simulate Platform" Left/Right/Jump, etc...

  • How do you make it follow player?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Try this out I learned something like this with ConstructChris.

    (Player.x) < than the (enemy.X then simulate platform left)   (usually the bullet behavior is -180)

    (Player.x) > than the (enemy.X then simulate platform Right)   ( usually the bullet behavior is -360)

    With the bullet this pretty much has great results and you can even have the player jumps left or right when it collides with obstacles in your scene.

    Hope this helps you.

  • Use the Compare X with the player when doing this line of code.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)