I think you know what to do. Once you're done, go to this link and code it yourself, and see how it would look in gameplay! Link: https://scratch.mit.edu/projects/746822671
Jump scare too- I made my own entity, Dream is rare entity which spawns between door 25-30, It tricks a player by spawning a fake item on the table. Example: A crucifix is laying on the table. But the crucifix has a particle effect This indicates its a dream item. Nightmare can replace dream. Nightmare is the V.2 version of dream, And deals 50% damage. Dream can spawn even 5 times in row.