Slender Guide by alucardj

Finally I have given up and am now making my scripts available for download. If you need to know how these scripts work, watch all my videos. If you want to just get the game running, follow the videos starting at 79 _ Slender the Examination

N̶o̶w̶ ̶f̶o̶r̶ ̶t̶h̶e̶ ̶l̶i̶n̶k̶ ̶t̶o̶ ̶t̶h̶e̶ ̶s̶c̶r̶i̶p̶t̶s̶ ̶:̶ ̶h̶t̶t̶p̶:̶/̶/̶w̶w̶w̶.̶a̶l̶u̶c̶a̶r̶d̶j̶.̶n̶e̶t̶1̶6̶.̶n̶e̶t̶/̶u̶n̶i̶t̶y̶a̶n̶s̶w̶e̶r̶s̶2̶0̶1̶2̶/̶s̶l̶e̶n̶d̶e̶r̶g̶u̶i̶d̶e̶/̶

v̶2̶.̶5̶ ̶a̶r̶e̶ ̶t̶h̶e̶ ̶s̶c̶r̶i̶p̶t̶s̶ ̶a̶t̶ ̶t̶h̶e̶ ̶e̶n̶d̶ ̶o̶f̶ ̶v̶i̶d̶e̶o̶ ̶7̶8̶
v̶2̶.̶6̶ ̶a̶r̶e̶ ̶t̶h̶e̶ ̶s̶c̶r̶i̶p̶t̶s̶ ̶a̶t̶ ̶t̶h̶e̶ ̶e̶n̶d̶ ̶o̶f̶ ̶v̶i̶d̶e̶o̶ ̶9̶2̶

The final scripts are attached to this post.

The guide is split across 2 playlists. This is explained in this video : 00a _ Slender Again - The New Guide :

The first part is in the playlist Programming and Making Games with Unity 3D
The second part is in the playlist Slender Again - The New Guide

// ----

Hi There =]

6 months after I started using Unity 3D I wrote a little ‘guide’ on Unity answers to a question about Slender. That turned out to be crazy, I never expected the amount of traffic and questions that was to come after that. Now ignorance is no excuse but i was naive, I didn’t even know what a Slender was! The first time I answered a question for how to pick up papers, I thought it was for a RPG quest or a school project. When the how can the player detect when the enemy is visible questions came up, I was thinking about Doctor Who (if you know what I mean, you’ll know. I want to do that one myself!). In summary I am trying to clean up my error.

After nearly 17 000 views at current date I cannot just delete the whole thing, so what I’ve done is a video series of me doing my own guide. Hopefully this shows how to use the scripts I wrote back then, as there are so many copies of them out there now. Some bug fixes, some explanation, alot of me making my own mistakes. Any programmer will tell you when they look back on a project there is always thing they would do completely different, we are always learning and expanding our knowledge. So please keep that in mind while going through all my nonsense.

The theme of this video series is " A guide written by a noob, for noobs "

// ----

The new video series has started. Programming and Making Games with Unity 3D

In this series I will be hopefully be helping anyone that is new to programming understand what the words in the code mean, how to write your own code by learning some coding basics and rules, how to use and read the Unity Documentation and the Unity Scripting Reference. Then I shall move on to writing some scripts that can be used for more than one project, how to make your scripts work for you. Then I shall rebuild the Slender guide using new scripts and old scripts, then I shall see if we can make a totally different project using all the scripts we have written. This will be a long series, with a lot of mini tutorials along the way.

Note : I have just started uploading the videos, so this part that follows will keep changing until all the videos are there and a playlist is made. Keep checking the change log at the bottom of this post.

Here are the video links to the new series :

// –

From here on, Slender videos are in their own playlist. There are still other videos that go with these in the Programming and Making Games playlist

I apologize now as the sound is still not great, after testing different microphones and configurations, I found the problem was … me. For the most of the time I do speak softly, and even though I try to remember to speak loudly, once I get going then focus on my voice is lost. I am sorry, hopefully all the required information appears on the screen anyway, so as long as you can see what I am pointing to, what links I am opening, and pause to copy what code I am typing, then everyone will still learn and benefit from my videos, this I really hope for.

// ----

The old guide is gone. It got old and a bit mad, so we took it to the vet and said our goodbyes …

There is going to be a whole new guide, this will be easy to follow along as everything will be shown starting from a blank project! All scripts and instructions will be in the videos. The new video series will be starting halfway through March. And yes, I’m buying a new microphone!

For now, here is the old guide :

The original written guide to follow along with : http://answers.unity3d.com/questions/296068/how-to-make-a-slender-man-follow-character-script.html

Here are the Video Links :

Slender video 1 : Setting the Scene : http://youtu.be/-6c3dv-bAns
Slender video 2 : Collecting Papers : http://youtu.be/ggjAtu0WDF8
Slender video 3 : The ‘Man’ : http://youtu.be/SVqhcKJIUEM
Slender video 3a : The ‘Man’ : http://youtu.be/SiZcI0J16Fk
Slender video 3b : The ‘Man’ : http://youtu.be/SRWlljfSZdM
Slender video 4 : Running and Footsteps : http://youtu.be/8Up51g9qlGI
Slender video 5 : Static Screen pt1 : http://youtu.be/ADCXi0HUJyQ
Slender video 6 : Static pt2 and Build Settings : http://youtu.be/ci2cFcVq_Ok
Slender video 7 : Scenes and Lock Cursor : http://youtu.be/2wBxrMdrawU
Slender video 8 : Speeding up enemy and Clamping player : http://youtu.be/wVu3Chptu5M
Slender video 11 : Change to Collect Papers using SphereCast : http://youtu.be/km9224GBhJM

Slender video 9 : Collecting Papers from Scratch using Raycast : http://youtu.be/-XIaWweMwH4
Slender video 10 : Collecting Papers from Scratch using SphereCast : http://youtu.be/JaOsHCV_SZQ

The pages and 3D Model I use are not mine, but can be clearly found if you read the written guide ! Terrain textures and assets and other models are all found in the asset store. Just check out 3D Models > Environments and > Props . For Terrain or other surfaces check Textures Materials . ( super hint : you can sort by / price / ).

The one direct link to the very latest versions of all the scripts (well currently only videos 1-7, but 8 is easy to follow and add yourself) : http://answers.unity3d.com/questions/409270/what-happened-to-the-slender-guide-by-alucardj.html

// ----

Links from the videos

Crash course in Unity (start at the bottom and work up) : http://www.unity3dstudent.com/category/modules/

Assets : Models and Textures :

http://answers.unity3d.com/questions/16650/game-asset-website-list-free-and-paid-textures-mod.html

Assets : Audio :

http://answers.unity3d.com/questions/7743/where-can-i-find-music-or-sound-effects-for-my-gam.html
https://soundcloud.com/groups/movie-game-background-music-soundtrack-music
http://www.melodyloops.com/music-for/games/
http://www.playonloop.com/music-loops-category/videogame/

Assets : Making your own Assets :

http://www.blender.org/

http://www.3dbuzz.com/

http://www.youtube.com/user/vscorpianc?feature=watch (for Blender and GIMP)

Terrain (for Unity 3.5 only) : SixTimesNothing (Terrain Toolkit and Road/Path tool) : http://www.sixtimesnothing.com/tools-and-resources/

Introduction to Character Controllers : http://cgcookie.com/unity/2011/12/05/introduction-to-character-controllers/

// ----

Requests :

Where can I find assets (audio, models, etc) for my game?

How to play an animation on a model ?

Can we make a RTS style game?

  • Yes, though this is one of the hardest genres to make. My next video series will be looking at how to make a RTS, and show the things you will absolutely need to master to make your own RTS. Still working on this current video series, but yes that will be the next one =]

// ----

Don’t stop here, read everything !

This is certainly Not the only and definitive answer for all things Slender. You should always try and look at a problem from every possible angle (that way you usually find all the ways that things could go wrong too). Here is a list of links that I made at the time just before writing my guide :

http://answers.unity3d.com/questions/287355/slender-like-game.html

http://answers.unity3d.com/questions/319733/how-to-make-enemy-kill-you-if-starring-at-it.html
http://forum.unity3d.com/threads/134862-Slender-Man-Design-Outline
http://www.parsecproductions.net/slendermangame.txt
http://forum.unity3d.com/threads/141488-Slender-Beta-0.9
http://forum.unity3d.com/threads/138399-Slender-Man-WIP
http://answers.unity3d.com/questions/239927/Collecting-Papers-and-Keeping-Track-of-how-many-collected--need-help.html
http://answers.unity3d.com/questions/323129/if-anyones-looking-for-a-flashlight-script-with-a.html
http://answers.unity3d.com/questions/316189/i-want-to-turn-my-flashlight-on-and-off-while-stil.html
http://www.youtube.com/watch?v=nmvCaqNGEFU&feature=related

http://answers.unity3d.com/questions/321749/how-do-you-pick-up-pages-like-in-slender.html

// ----

Change Log (what has been added to the above) :

Mar 10 2013 : uploaded videos 84 to 92 : Adding In a Whole Bunch of Stuff to Finish This Game and Make It a Little Better.

May 9 2013 : uploaded videos 80 to 83 : Building a Scene With All the Current Scripts

May 7 2013 : uploaded video 79 : A Look At All The Current Scripts

May 6 2013 : uploaded videos 77 to 78 : Trying To Look At And Find Where Some People Cannot Get This Built

May 4 2013 : uploaded videos 64 to 67 : Adding Audio, enemy reduce distance

Mar 27 2013 : uploaded videos 48 to 60 : GetComponent, PlayerHealth, Static Shader and Screen Effect
Mar 26 2013 : uploaded videos 28 to 47 : Developing NPC, building a scene with all the information given so far
Mar 19 2013 : uploaded videos 19 to 28 : Textures, Vector3 and Rigidbody NPC
Mar 17 2013 : uploaded videos 12 to 18 : Ambience, State Engine and Flashlight
Mar 13 2013 : uploaded videos 06 to 11 : Assets, Terrain and Character Controller
Mar 12 2013 : uploaded videos 00 to 05 : Introduction and Scripting Basics
Mar 12 2013 : Start of the New Video Series

Mar 5 2013 : New video 11 on using SphereCast to collect papers. Much better results !
Mar 5 2013 : Stand-Alone video 10 uploaded (Collecting Papers from Scratch with SphereCast).
Mar 4 2013 : Stand-Alone video 9 uploaded (Collecting Papers from Scratch with Raycast).
Mar 3 2013 : Video 8 uploaded to youtube (speed up enemy and clamping player).
Mar 1 2013 : Videos 1 to 7 uploaded to youtube.
Feb 28 2013 : The first videos (1-7) are recorded.

// ----

1179430–193232–Slender_Final_Scripts.zip (10.5 KB)

3 Likes

Really cool series!
What did you mean about the Doctor who thing? Something with the silence or weeping angels? O_o

Hey! I thought I would just drop by and say THANK YOU, not specifically because of your guide, not specifically because of your videos, but because how actively and altruistically are you always helping everybody on Unity Answers, and also adding interesting questions and material of discussion to the different pages (like Unity Gems).

I feel like you’re really doing the right thing helping the community instead of sending everybody back to “google”, or telling off new people for asking newbie questions.

Thanks ;).

1 Like

Thanks Jay Kay.
Here is my second question:

  • The asset links are dead. Where can i found them???

Baskyn : Thankyou, and yep :wink: you got it =]

EvansGreen : Thankyou that is awesome, I really like helping people but like to know it too! Yeah my pathfinding sorta works but not completely (it sometimes zig-zags but gets there no worries). I hope you find something useful there in my answers or videos yourself. Those were from 2 nights ago, and I’m already planning some other videos in my head.

Slendyberkay : Thankyou too =] sorry the packages are out of date and gone. The only option right now is to watch the videos from the start, and go to link at the top for all the scripts from that video series. If you have the original written guide link you can still follow along there and use the scripts. Have Fun !

Edit : If you are looking in the asset store for models and assets to use, check 3D Models > Environments and > Props . For Terrain or other surfaces check Textures Materials . ( super hint : you can sort by / price / ).

I searched and found these:

these are the building shed, pipe, rocks, wall (cracked), wall

too bad i couldn’t find fence for free

edit:
i found it(not original one) here it is:
-Stone Fence | 3D Exterior | Unity Asset Store
just looks good

It’s nice also to have a clear reference point to turn all those slender questions to.

It’s often most frustrating (to me) when these questions come that in many cases people seem to have thought for not even a split-second (usually these questions even seem to ask for someone to write the exact script).

Also often people say they have looked for the question and found nothing, which sometimes made sence because it’s hard to think it might help to search in terms as “Detect when object is near” or “Detect when player is near”, and those are completely understandable and basic questions when someone is only just starting out in unity… But instead they… they… okay, i honestly have no idea how you can -not- find that answer, but people manage to apparently.

All around the net there are many well-written unity tutorials about any level of scripting, shader programming, texturing, et-cetera…

But i’m starting to wonder… wouldn’t it be a good idea to try to obtain a “sticky”/announcement thread where we can try to add some well-known tutorials and links. (including this one)

We could have the subjects divided in a clear way, having titles such as “Finding an Object” “Levers, switches and doors” “Moving Players, Objects and NPC’s”

… I was looking around the forum trying to find some examples, and stumbled on this topic which seems to take the direction of grouping learning sources http://forum.unity3d.com/threads/170898-Unity-tutorials but didn’t want to ditch this whole post. i’m curious :slight_smile:

Annihlator : these are all fantastic points and ideas, btw am new to having any online presence apart from UA, I don’t know how to do a ‘sticky’ thread ! If anyone can help out there. And if you would like to add this resource to another list, I guess that is fine, my only problem is these scripts are old and I want to show better ways of doing things, techniques you can use for all projects. This is where my videos will be going.

The original ‘guide’ answer was to hopefully stop 2 of all the same type of question (how to pick up, when is enemy visible), but I got that wrong! And yes you can see the trend in the types of questions, so there need to be a way of showing how to use all these components and commands to work with each other. Absolutely there are so many instructional resources out there, I would be lost without reading/watching. There are cases where people just don’t know the terminology, or that something even exists. Hopefully everyone will learn at least one thing (even just how to not do something from my mistakes), that would be fantastic.

The real aim of this particular page was to stop all the different questions using my scripts on Unity Answers. So far it looks like everyone is finding this page and then the videos, and I havn’t seen any new questions on UA which is great. As you can hopefully see, on this page I will always do my best to answer Any question, even the ones that get shot down in the Answers.

What I can do Is keep changing the first post as everyone likes, if you have a slender link I can put it with mine, then we can make a directory of all the different parts of slender. Something like :

  • terrain , model and audio assets
  • first person controller and scripts (running, audio etc)
  • all ways to collect items
  • all ways to know if an object is visible to the camera
  • how to talk to other scripts
  • special effects
  • anything I cannot think of right now

This is exciting. Like I said at the start, this was written a long time ago now, and there are better ways to do things I can show. We could do this whole thing again, but in a way that builds these different scripts that you can use again and again on lots of different projects. For example, my next video would be how to collect an item using a trigger zone. But in this I would teach how to use GameObject.Find and GetComponent. Then we would make different trigger zones : to collect items, to use as a switch to open a door, etc.

Alucardj, you seem to think about what is “the problem” the same way as i do, that feels great i must admit!
Maybe through some personal messages to the unity staff on these boards we’ll be able to draw some attention.
I’ll see if i can put up an example for a sticky thread. i used to do those kind of things for a Cinema4D Community in the past too!

Thanks Jay I made this time but sometimes “fog” doesn’t appear and it looks like a sunny day.
And i need someone to make me a material for my monster

Come on man, i always hope with such an attitude, that no-one will help (that is, in making the material itself FOR you).
Try asking those things, or how to do something instead of assuming someone will simply do it for you in the end… okay?

Can you tell more about your monster? (or which model it’s using, i.e… i’m not going to read through the whole tutorial right now.)

Highly, highly unlikely. If it’s quality you’re looking for. I tend to agree with Annihlator here. You should learn a thing about collaboration ;). Quick tip, nobody make YOU some quelity product for YOUR game for free. Either change your semantics or pay them.

Sorry if I sound a bit cynic but I felt like you’ll find use for this criticism if you don’t take it badly.

Jay

I need help.
I said I was very new to unity and I wanna ask you something…

I wanna add extras to ending(WIN) but i have no idea how to add another button thing.

I wanna make something like this when player win game;

Button says You win!
Another button says Extras

Can you give me

Oh I made it myself. Thanks for help again. :smile:

#pragma strict

function Start()
{
Screen.lockCursor = false;
}

function OnGUI()
{
if ( GUI.Button( Rect( (Screen.width * 0.5) - 75, 10, 150, 50 ), “You Won !” ) )
{
Application.LoadLevel( “SceneMainMenu” );
}
if ( GUI.Button( Rect( (Screen.width * 0.5) - 75, 150, 150, 50 ), “Extras !” ) )
{
Application.LoadLevel( “SceneMainMenu” );
}
}

Will chance SceneMainMenu with SceneExtras :smile:

Very well done, if i may say :slight_smile:
You can also use GUI.Label for displaying just text by the way.

And a question like you posted just before, i wouldn’t mind answering at all :slight_smile:

Hi there, excellent going. Didn’t really cover the GUI sorry, was focused on the questions with loading level so only described that. Doing the videos I can see alot that could be done better there too, and in future all episodes will show every Unity Scripting Reference for every command I use.

This page is for everyone to contribute to, so please help each other (and me !). There will be some expectations : this (and my future videos) is aimed at helping new users of Unity, but I am not writing your game for you. Some things like assets you really have to search for or try making yourself. There are oodles and oodles of tutorials out there for everything, keep searching. Notice words people use to describe things (like UV mapping), search on those and you will get closer!

The videos were so I could stop answering questions and ‘pass on the torch’ to the community, but they are all wrapped around my old scripts. Straight away there were questions, and looking at these scripts again as I explain and edit them, it’s not going to stop. Don’t take this the wrong way, I have been absolutely blown away by the positive response. Not even a week after the videos were posted, the original written guide has had 1000 more visitors, and the youtube view statistics after 24 and 48 hours alone were just incredible.

So I have decided to make a new guide , yes you heard correct and you heard it here first. Annihlator you have inspired me, thanks for your kind words, and it does seem like we ‘see’ some of the problems arising with an ever growing pool of (new to programming) Unity users. As in our last comments, I shall be trying to show everyone some more general practices, so while this shall be aimed at Survival-Horror, hopefully the things you learn and the scripts you write are then ready to use in all your other projects. A great example is out of all the scripts that need a state engine, the only one is in the flashlight script. This is just one of the many practices I want to show other people how to use for themselves.

You can see this with the new standalone video for collecting papers, I already have another standalone video idea to record and upload tonight. Then I shall be adding that to the old scripts, then this is the last time I shall be working on the old scripts. There shall be a new series for Slender, then some completely separate video playlists for specific topics (currently planned are trigger volumes, and raycasting). Within these separate playlist I shall cover alot of the basics like GameObject.Find and GetComponent.

Something I have learned is I shall not be providing my scripts to just copy anymore. To get the scripts, people have to do the videos. This seems harsh, but again shall actually benefit those who want to learn, and force those who just want to copy to have to do the videos.

Keep checking my first post, this is constantly changing. Something else learned, I shall add a change log to the bottom of the first post, so everyone can see what’s changed or been added quickly. So with my quality of videos, sorry and I’m trying to make them better. With the way I explain things, that is me so is not going to change, hope my words my mistakes and fixing my mistakes shows everybody something they can learn from.

Coding is like Lego : all the pieces are the same : what you make from them is where the magic is !

I can show you how I understand the pieces, the rest is up to your imagination and motivation =]

Edit : ok so the first question appeared on Unity Answers, so it made me think I need to add a ‘request’ part to this forum page. So from now, let me know here any requests you have, and they shall be added to the list at the top of the page.
The first request is from poopdaloop : How to make an model an enemy? Seriously i have made a model and i have put a couple scripts in the model but still nothing changes can any of you help me out ?

Ok so I think this is asking how to play an animation on a model. This I shall do soon ok !

alucardj, do you have a skype? I really need help witha slender game I am wporkoing on. It is going ery well. I am only 12 years old though. But the game is coming out to look professional. Also, I need some help with scripts and others. Please help me ?

Hi MonsterGamingHD, your game is sounding good ! I have never done any 1-on-1 help before, not sure if I could, and I would like this page to be for everybody. But don’t be afraid to ask ANY question here (except why does a brown cow give white milk when it only eats green grass!), here is not like Unity Answers, any question on this topic is A OK. Also I am working hard in my spare time to finish my new guide, I am trying to add some basic programming stuff to help new users learn how to read and write code. If your question is something you really think is unique to your game then send me a PM (private message) and I’ll see what I can do to help. Up the top where it says ‘Welcome, MonsterGamingHD’ click on your name, then click on ‘Send Private Message’. If I can help I shall, and there will be lots of free time after the new videos are up (unless I get a ton of new questions, but you did ask first!). If you have a problem that I think will help everyone, I will keep your code a secret but may tell this page how to fix that type of problem if it happens to them with a completely different example. Just send me one problem at a time though, ok, whatever is the first thing that is stopping you from continuing your game. Hope to see some screenshots when it is finished. So this is a yes I shall try to help, sorry I don’t really skype except to family overseas, but you can ask me anything here or in a PM.

Kay, I’m adding extras to my game. The levels will be:

  • Day Mode
  • Stripteaser mode
  • Hunting Mode

I have no problems for Day Mode. Just copy scene and name it Level 1 and change SceneWin code no more.
Here is my first question. I ll use a sexy anime chick for stripteaser mode and i want to make it like it is in a pavilion. And change papers with 1/4 of a anime drawing.
So first question is:
What happens if I chance all 'paper’s from code and write 'poster part’s?
Does this makes a problem? ( I ll save as Lev 2CollectPapers)
For hunting mode I’m going to add a FPC with no flashlight and a player named paper and i will set PapersToWin with 1 and can u give me a script for player to move away everytime .
And i’m going to make player red glowing and yellow maybe. How can i make infrared look… ??? ???

And I searched “slender clone” and found “Nıghtmare (slender clone)” and i think it’s main menu is COOL so can u prepare me scripts for a menu like this?
I need it.
Please respond.

please reply. Someone I need help doing these.