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
Jumpscare Code Problems. Help fix plz
nnate4 Offline
Junior Member

Posts: 1
Threads: 1
Joined: Jul 2012
Reputation: 0
#1
Jumpscare Code Problems. Help fix plz

okay, so here is a script to make a grunt pop out, when you go in an area. what am i doing wrong? nothing is happening when i go in the area.


void OnStart(){
AddEntityCollideCallback("Player", "Jumpscare_1", "Jump1", true, 1);
}
void Jump1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("bro_1", true);
AddTimer("", 0.7, "scared");
}
void scared(string &in asTimer)
{
SetEntityActive("bro_1", false);
}
07-29-2012, 02:39 AM
Find
darkely Offline
Posting Freak

Posts: 984
Threads: 87
Joined: Dec 2011
Reputation: 10
#2
RE: Jumpscare Code Problems. Help fix plz

Dont bother making it if you are going to put in jump scares -.-

[Image: 4vh1tl.jpg]


Same goes for games

07-29-2012, 02:45 AM
Find
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#3
RE: Jumpscare Code Problems. Help fix plz

(07-29-2012, 02:45 AM)darkely Wrote: Dont bother making it if you are going to put in jump scares -.-

[Image: 4vh1tl.jpg]


Same goes for games
Jump scares can be an extremely important element of horror, if done properly. Amnesia had jump scares as well, so I think your comment is too extreme. If all a CS has are jump scares, then yes, it is a problem. But having a few thrown in to complement the environment and give the player a reason to be afraid, then it can be very good.

As for the scripting problem, double check to make sure all of your names match up in the editor and the script.

07-29-2012, 02:57 AM
Find
Kazakarumariou Away
An angry man.

Posts: 283
Threads: 8
Joined: Jul 2012
Reputation: 14
#4
RE: Jumpscare Code Problems. Help fix plz

void Jump1(string &in asParent, string &in asChild, int alState)

{
SetEntityActive("bro_1", true);
AddTimer("1", 0.7, "scared");
}

void scared(string &in asTimer)

{
if(asTimer == "1"){
SetEntityActive("bro_1", false);
}

}


Incorrect way of using the timers.
But if the "bro_1" isn't even spawning there must be an error with matching the names. Be sure to check if the area of the script name is corresponding to "Jumpscare_1".

(07-29-2012, 02:45 AM)darkely Wrote: Dont bother making it if you are going to put in jump scares -.-
You shall not tell this guy what he can or can not do!
If he wants to make a story with a jumpscare then be it, he probably has people who are willing to support his story too.
If you don't like it then don't play it.
Jumpscare stories exist and various amounts of people enjoy them.
(This post was last modified: 07-29-2012, 04:26 AM by Kazakarumariou.)
07-29-2012, 04:20 AM
Find




Users browsing this thread: 1 Guest(s)