Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / [SOLVED] Player Gets Jumpscared After they die

Author
Message
thedoctor989
6
Years of Service
User Offline
Joined: 6th Mar 2018
Location: Dimension 669
Posted: 15th Apr 2018 19:49
hi, i'm new and i was wanting to get some help on scripting a "Death screen" i really want this to work but if anyone could post a script or modify others scripts to allow this function would greatly be appreciated!

The author of this post has marked a post as an answer.

Go to answer

ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 16th Apr 2018 10:40
@ thedoctor989 Welcome
Quote: "Player Gets Jumpscared After they die"

Doing a "Jumpscare" is really easy, but not if the player has died and is being "respawned" in the game to say.
Maybe you mean when an enemy character dies? Or something else? If you could, clarify a bit more what you need.
My games never have bugs. They just develop random features..
Lots and lots of random features...
thedoctor989
6
Years of Service
User Offline
Joined: 6th Mar 2018
Location: Dimension 669
Posted: 16th Apr 2018 13:14
there is no 3 live chances with my game, i want to script it so when a player dies by a entity before they get a game over screen they see a jump scare then afterwords they see a game over screen and replaying the game will reset the values for the jump-scare to be triggered again
"I'd Rather be hated for who i am, then Loved for who i am not"- Kurt Cobain
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 16th Apr 2018 22:24
@ thedoctor989
Quote: "there is no 3 live chances with my game"

Quote: "a jump scare then afterwords they see a game over screen"

So basically your setting the players "Lives" to 1 (one) correct, so you get one chance
at the level and then it's "game over" ?
I'll test a simple script tonight that runs when player dies, or maybe replace the "eye-hud"
for the jump scare
My games never have bugs. They just develop random features..
Lots and lots of random features...
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 18th Apr 2018 10:34
@ thedoctor989 I tested a simple script to run when player dies. It does work in "test mode"
Not sure about a final build? You will have to try it out. Attach to a triggerzone and place anywhere in your level.
Dont forget to add the path to your image.

Let me know if it works out for you.
My games never have bugs. They just develop random features..
Lots and lots of random features...
thedoctor989
6
Years of Service
User Offline
Joined: 6th Mar 2018
Location: Dimension 669
Posted: 18th Apr 2018 16:19
can you give a example of what to put in the Path file way?
"I'd Rather be hated for who i am, then Loved for who i am not"- Kurt Cobain
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 19th Apr 2018 10:46
@ thedoctor989 It would be an image of your choice of course, placed somewhere in the "gamecore\huds\ folders. You can make a sub folder if needed. ( example: gamecore\huds\MyGame\Level1 )
Then in your script you would type in the path to the file (image) needed. ( hudimage=gamecore\huds\MyGame\Level1\popup_image.dds ) Now in that last folder (Level1) there must be an image
named "popup_image". You can name your images anything you want, just make sure it matches the name used in the script, that's all
My games never have bugs. They just develop random features..
Lots and lots of random features...
thedoctor989
6
Years of Service
User Offline
Joined: 6th Mar 2018
Location: Dimension 669
Posted: 20th Apr 2018 12:57
i keep getting a error everytime i try to build a game or test out the script, i made a new room and did what you said but everytime i press the test button it says Error 118 Array not found at 2158
"I'd Rather be hated for who i am, then Loved for who i am not"- Kurt Cobain
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 22nd Apr 2018 15:02
This post has been marked by the post author as the answer.
thedoctor989 Ok, that error most likely is due to an incorrect path to a file.
Now I am assuming your using BlackIce mod, so I attached a test map & files to test out. Just drop the files into the correct folders and run the test map.
I works perfect for me Player dies and you get a scary face pop-up. Now like I said, I assume your using the Black Ice mod, if not tell me what version
you are using? Black Ice uses some extra commands that are not in the other versions, for this example it's the "hud" commands.
My games never have bugs. They just develop random features..
Lots and lots of random features...

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-19 12:18:47
Your offset time is: 2024-04-19 12:18:47