How would I implement AI for Platformer?

0 favourites
  • 6 posts
From the Asset Store
AI for enemies in style of a well known blue robot guy.
  • Hello.

    I came across an idea that would involve a static non-scrolling platformer game.

    Sort of like this map I have:

    dropbox.com/s/5fmft07t64hvhkc/Level1.png

    Your objective would be to destroy the AI that is trying to destroy you.

    The AI I want them to basically behave just like your character with the "platform" behavior you can declare on your player under "movements".

    So say your character jumps to one of the platforms on the left hand of the platform map, the AI will follow you to that platform.

    Can this be done? I just cant grasp the logic flow I would need. I would need some help.

    Thanks for anyone that helps. I appreciate it.

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Maybe no one knows. <img src="smileys/smiley36.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I found the closest example to what I would like to do.

    I would like my enemy AI to follow you on multiple platforms and attack you, but not as quite as the example below, its a little too fast of following.

    johnnysix.net/games/FollowTheLeader01p

  • The closest I could get is have the enemy set angle toward player with x and y location of player, with bullet behavior. But it is not realistic, because it does not act the same as the player using the platform behavior.

  • It's tricky man, I've never tried it, sound too complicated for me haha. I guess you'd put a bunch of logic sensors and set up a bunch of variables like jump, stop, turn etc and tell the AI to either stop, jump, turn or whatever whenever they pass over the sensors.

    There's a bunch of examples in the forums, do some digging and you'll find it. Even in the arcade I think there's an example.

  • o.0 im confused lol.

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