I am currently making a bull-type enemy that you have to dodge during gameplay. Will debounce prevent it from tracking you as you sidestep?

Basically, it continues in a straight line, waits three seconds, then it tries to chase you down again. Video showcases what I am trying to make.

https://www.youtube.com/watch?v=goKyi1Kvews

2 comments

0

You need to create an artificial intelligence(A.I.) for a thing like that. A debounce is simply a small system to prevent a function from running multiple times.

0

You could use a loop that uses WalkToPoint to go to where the person currently is, then it waits 3 second, and runs it again.