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:
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: