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 / Hud image takes up the whole screen???

Author
Message
Blahguy
13
Years of Service
User Offline
Joined: 12th Dec 2010
Location: The Void
Posted: 28th Jan 2011 22:40
So yeah I'm having some issues with a picture I want to display in the game. The main purpose of the picture is for it to pop up when the player uses a switch (so it's like a number code thingy to unlock a door). That part of the code works, but when the game loads the image something weird happens. It's hard to describe, so I'll upload the snapshots of the game in this post and the next one.

Also, when the correct code is entered, I want the image to change to an image with the green light on as opposed to the red light. I can get the red one to go away, but for some reason the green one won't appear. Here is all my code:
The MAIN script for the switch5:

RED.fpi:

And GREEN.fpi:


All help is greatly appreciated!!! And again attached is what it looks like when the image appears.

Attachments

Login to view attachments
Blahguy
13
Years of Service
User Offline
Joined: 12th Dec 2010
Location: The Void
Posted: 28th Jan 2011 22:41
Here is what happens after the original image disappears and the new one with the green light on is supposed to appear.

Attachments

Login to view attachments
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 1st Feb 2011 19:02
In your GREEN.fpi script, you don't actually MAKE the HUD. You set it up but never finished it with a "hudmake" command. Thus, when you attempt to access the HUD which doesn't exist, FPSC comes up with the "default HUD" which is the "eye HUD".

Finish making your HUD and it should show up.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
Blahguy
13
Years of Service
User Offline
Joined: 12th Dec 2010
Location: The Void
Posted: 1st Feb 2011 19:26
ok but that doesnt solve the original problem. Why when the RED image shows up does the rest of the screen look like the default eye or whatever?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 1st Feb 2011 19:35
You should ALWAYS create your HUDs before doing anything else in the script. I see in your RED.fpi script that you're accessing the "locked" HUD before it's even created (Such as when the player isn't in the zone).

See if that helps.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.

Login to post a reply

Server time is: 2024-11-24 13:07:30
Your offset time is: 2024-11-24 13:07:30