AI Enemy in game help

What Wick Editor Version are you using?
1.19.3

Describe the Problem
I don’t know how to make the AI work.

What have you tried so far?
I have tried to attract the enemy to the player.

How I want the AI to work:

I’m making an Among Us type gameplay thing where the player needs to escape this monster. When the player isn’t around the monster, it should just be walking, however, when it sees the player, it runs to the player and tries to kill them by touching them. The player needs to survive for about 5 minutes.

Other than enemy AI is your game working? (game map, player movement, restriction of movements …)
How do you move your player? click on destination or move by arrows/keyboard?

1 Like

I use the key arrows.

I have other issues actually, now how do I make Vcam follow the player. I think I know how to make the game map though.

never used Vcam so cannot help here.
if you use arrows your character will be centered in the screen?
if so you can make a clip containing the map and all other stuff except the player.
when you press arrows you actually move the maps into reverse (eg. if you press up arrow maps moves down)

What you can do is go to the V cam and click on it make your in the update tab and write the following code:

this.x = player.x
this.y = player.y

And that all you wright

Tysm!!! I never knew it was that simple!

Yeah, it very simple

Do I name my player “player?”

You dont have to but you can.
where it says player you can change it to what your object is named

this.x = player.x
this.y = player.y