Frictional Games Forum (read-only)
How does the Slenderman's AI (if that) work? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Frictional Games (https://www.frictionalgames.com/forum/forum-3.html)
+--- Forum: Off-Topic (https://www.frictionalgames.com/forum/forum-16.html)
+--- Thread: How does the Slenderman's AI (if that) work? (/thread-18840.html)



How does the Slenderman's AI (if that) work? - darkely - 10-18-2012

I've been reading about him in threads, or YouTube so I finally decided to play the game for myself. To be completely honest it was not very scary at all. However I was wondering how the Slenderman finds the player... like how does the game determine where to place him and such?

From what I've observed he acts like this...

L1 ~ [Game] Note(s) Collected: [if 0 than revert to line 1]
L2 ~ [Game] Note(s) Collected: [if 1 or or more continue to line 3]
L3 ~ [Game / Slenderman] Appear randomly (in front of player but not directly)


RE: How does the Slenderman's AI (if that) work? - Robby - 10-18-2012

Well, only the developer knows (in my opinion), but it's complicated. A lot of programming seems to have taken place there.

If you'd play "Slender: Prison", his AI is completely redesigned there (from scratch). The way he behaves in that level... can't go past 1/8.

In the other levels, it's a bit lightened up (Elementary allowed me 7/8 before loosing, Mansion lets me 11/12 before loosing). I kept replaying, and he gets more aggressive the more pieces you get.


RE: How does the Slenderman's AI (if that) work? - Kreekakon - 10-18-2012

Probably things like:

-Constantly checking to see how much pages the player has, and determine Slenderman's actions accordingly.
-Checking if the player is looking at Slender
-There is also likely so sort of variable that keeps track of how long total you've stared at Slenderman even if he doesn't kill you. From what I've seen, I'm guessing it affects some of his behavior depending how the total amount of time you spent looking at him too long.


RE: How does the Slenderman's AI (if that) work? - darkely - 10-18-2012

I've only played the first.

However I am guessing once you look at him (or it) a timer starts to tick down. How much smarter is he in Slender: Prison?


RE: How does the Slenderman's AI (if that) work? - Ghieri - 10-18-2012

I played it once, and it seems like a simple game of cat and mouse, slender just moves closer every so often until it catches the player.

If I were writing the code, I would do it like this:

Code:
Spawn the player and slender.

if(delta x and delta y between slender and the player are not 0){
Increment Slender's x and y coordinates periodically until the player is caught or the pages are found.
Possibly make him more aggressive depending on number of pages found, whether the flashlight is on, or how long the game has been going on, etc.
Maybe make him dance to sax.
}



RE: How does the Slenderman's AI (if that) work? - Robby - 10-18-2012

(10-18-2012, 08:02 PM)darkely Wrote: I've only played the first.

However I am guessing once you look at him (or it) a timer starts to tick down. How much smarter is he in Slender: Prison?
Well, if you look away from him when the static plays in it, he'll go "weeping angels" style. And he's super-fast. It's the hardest, because no matter what strategy you use, he gets you.

In the others, he just teleports, and moves only when he's close to you (from behind) or when you have 2 pages left or less.


RE: How does the Slenderman's AI (if that) work? - JeadDovah - 06-23-2014

I've Played it for a few times but i've seen many vids abot and i think i know how it works

-the slenderman spawn in X-distance from you by starting the game
- slender man has a specal range in that he can spawn For example: he can once in X seconds spawn
X meters
- the Range and/or the spawnrate grow with any page you pick up
- light (flaschlight) generates a Kind of shaddow how the slenderman can see
- he follows you
-if youre Standing still he overtake you and
- he recording specal ticks of you ( For exemple: if you loocking often for him he teleports in your back)

(sorry for my bad englisch)


RE: How does the Slenderman's AI (if that) work? - Neelke - 06-23-2014

This thread is two years old..