• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Platformer: enemy decision making (walking around, jumping onto Platform's, etc)

jackapap

Member
Hello!
I am currently working on a roguelike platformer similar to risk of rain, and ran into a roadblock when it came to improving the AI.
for context:
I have the enemy and they currently act very similar to that of a Goomba. they run forward, hit a wall and run the other way.

my goal in mind:
to have these enemies path-find their way to the player, running, jumping on platforms, until their collision mask's meet.

If someone could guide me or show me the code needed, it would be very appreciated, I'm new to coding and have no idea if what I'm asking for is simple or extremely complex.

The player object is named "Oplayer"

the current code for the enemy:
Capture.PNG
 
Top