Do you guys have any good AI for my project? I’ll give credit


#1

https://c.gethopscotch.com/p/zt1h8qz6t My AI for the monsters is pretty bad, and I’m out of ideas


#2

Also I’m trying to get featured, but I still need to fix the AI and add instructions


#3

What do you need them to do? Follow then attack the player?


#4

Pretty much that, but to the point where they don’t just stick around in a corner waiting for you to move, to the point where it keeps on following you


#5

Do you want it to be constantly following or sometimes it passes it the player a little
(difficulty essentially)


#6

Yes. The thing is, I’m using a percent, like super smash bros, so the character will be bounced back when it hits the monster


#7

ENEMY OBJECT:

When Game Starts:
| Repeat Forever:
| | If x < bearX:
| | | x +=5
| | ELSE
| | | x -= 5
| | END
| END

When Game Starts:
| Repeat Forever:
| | If y < bearY:
| | | y +=5
| | ELSE
| | | y -= 5
| | END
| END


#8

Oh thx, but what’s end?


#9

It basically tells you when the block ends, like the end of the repeat block and the end of the “If-else” block


#10

Thank you for the code, it works very well!


#11

Ok I think I’m finished, and before I self nominate it, here it is


#12

I liked your first version more. The newest one is too hard.