I added a new behavior to the bear called sine which sets the bear to patrol left and right and you can set it to be horizontal or vertical and set the distance it travels.
This makes it so much easier to code patrolling enemies in games
This shows what difference I have made to it and how simple this new coding is compared to making him have variables and have about 6 pieces of coding. it was also very quick and wasn’t very hard to add to the game.
The video below is how I learnt and researched about the sine behavior.