How do i make a bot

i have just been wondering how do i make a bot in a wick game

There are a lot of bots, i think the simpliest one is one that follows the player, but most of times is really hard to code a bot (at least i find it that way), soo, what bot do you mean?

This might help:

here is an example like a fighting game and the bot will try to win

You could give him attacks and make him get close to the player, if it touches the player, it’ll do a random attack, also you could make him jump randomly, and other things, or if he has a long range attack, check if his x is close enough to player’s x, if it is, it’ll do a random long attack, i don’t know how to make a fight game tho, i’ve never tried it.