Creating upcoming horror game

I am trying to make a horror game but I don’t know how to make it so that an entity looks at the person next to a wall and when a person comes up close it the entity slides back and vanishes. How do I make this???

2 Likes
2 Likes

Like “Him” said, you can use animations.
You can find multiple tutorials on YouTube to see how it works.
Note that you can also do it with some script.

But, to enable the animation, you need to follow these steps:

  • Create/import your monster
  • Add a new part (we will be using it as a hit box, and when the player touch it, the monster will disappear, so make sure that the part is big enough)
  • Change the part transparency to 1 and disable CanCollide
  • Then you just need to add a script file, detecting when the player touch the part, and then run the animation (don’t forget to remove the monster, or the character will return to his original position after the animation ends)
2 Likes