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 / script question

Author
Message
john schwarcz
User Banned
Posted: 6th May 2009 08:03
hey, this isnt really a request because the script is probably either extremly easy to create or already made, and i tried to make it, but i failed multiple times can someone help me,
im trying to make a script that has a hud on the whole time , except when you push F , then it dissapears and a different hud is displain, the when you push F again, that hud dissapears and the first reapears, any help would be greatly appreciated.


(on a second note, is there a way to make lights brighter but not wider) ?
thanks guys

shadow666
Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 6th May 2009 08:20
Flashlight,eh?

I would help, but its 10:20 PM, and I have to get up at 4 AM to catch the bus..

Im sure someonw will help.
john schwarcz
User Banned
Posted: 6th May 2009 08:59
yep but this one is made so the the outside of the light isnt affected , you wont even realize its a hud (except the game will be much darker)

shadow666
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 6th May 2009 13:58
How about showing us your attempt at it? We may be able to point out what you were doing wrong, or not doing at all.

This helps you learn more than us doing it for you.


The one and only,


john schwarcz
User Banned
Posted: 6th May 2009 15:38
ok im goin out now, but when i come back ill get right on it (its an edit of s4reals script, i hope thats allowed)

shadow666
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 6th May 2009 16:09
It's actually quite a simple trick to pull off. Use a variant of the objectives hud script to have the primary hud display in state 0, and then move to state 1 when F is pressed (or back to state 0 if in state 1). Attach the script to a trigger zone.

Priest of the Church of Joe Wood
john schwarcz
User Banned
Posted: 6th May 2009 16:37
so state one is it on and state is is it off , how do i have pressing F change from state one to state 0 (not on the comp with fpsc brought a laptop with me) thanks

shadow666
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 6th May 2009 17:48
Quote: "how do i have pressing F change from state one to state 0"

This is actually covered in a few different places in the community guide and in topics here on the forums. The condition you'd check against is scancodekeypressed. Search around for that, and I'm sure the answer will come to you.

Priest of the Church of Joe Wood
john schwarcz
User Banned
Posted: 6th May 2009 18:32
thanks , can you send me a link to the community guide ive looked for it for a while and still cant find it, lmao sorry

shadow666
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 6th May 2009 18:47
you should know where this thread is. *sighs*

http://forum.thegamecreators.com/?m=forum_view&t=131868&b=21

Priest of the Church of Joe Wood
john schwarcz
User Banned
Posted: 6th May 2009 19:15
i know im sorry, im not that good at the basics

shadow666

Login to post a reply

Server time is: 2024-11-25 00:38:45
Your offset time is: 2024-11-25 00:38:45