Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make jumpscares?
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#1
How to make jumpscares?

I want to make jump scares in my CS but not like naked guys jumping at you and stuff, I want it to be just like the original game where the skulls come out of the cup board in the study if you know what i'm talking about! yeah how do you do that or what is the name of the code? I want like when you touch the closet something will happen or blood comes out
(This post was last modified: 01-06-2014, 08:52 AM by Radical Batz.)
01-06-2014, 08:51 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: How to make jumpscares?

Well, assuming you want the blood, you need to get some particles so that you can get some blood going (think there is one), some decals of the blood where necessary; found in the static objects area of the Level Editor.

Coding it, you would use the SetEntityPlayerInteractCallback and the void routine it uses. You would fill in the gaps however Smile :
PHP Code: (Select All)
SetEntityPlayerInteractCallback(stringasNamestringasCallbackbool abRemoveOnInteraction);

void stringasCallback(string &in asEntity)
{
//Put some code in here, which happens when you interact with your closet


If there were to be moving skulls, you would add force to them with:

PHP Code: (Select All)
AddPropForce(stringasNamefloat afXfloat afYfloat afZstringasCoordSystem); 

You can find all scripts compatiable with this game on the Engine Scripts page

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 01-06-2014, 09:31 AM by Romulator.)
01-06-2014, 09:27 AM
Find




Users browsing this thread: 1 Guest(s)