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 / How to make a briefing object?

Author
Message
Loirt
15
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 9th Dec 2009 19:52
I want to make a briefing object, but I doesn't work. I have a script:

;Dar's Scripts

;Header

desc = text script

;Triggers

:state=0:hudreset,hudx=130,hudy=300,hudimagefine=D:\Program Files (x86)\The Game Creators\FPS Creator X10\Files\languagebank\english\gamecore\text\briefing1.tga,hudname=briefing1,hudhide=1,hudmake=display,state=1
:state=1,plrwithinzone=1:hudshow=briefing1,hudfadeout=briefing1,state=2
:state=2:suspend
;End of Script

I put the .tga file in that folder above. But when I test the game it gave a error image load briefing1.png. Can somebody help me out?

Loirt
Mr illusionest
16
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 9th Dec 2009 21:10
1- If it doesn't work because of the hud isn't showing at all , remove the path to the hud until Files , start it from languagebank
2- If the hud showed but disappeared in the same time use timers to make a good effect .
Hope I was Helpful .

Illusionest

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
Loirt
15
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 10th Dec 2009 16:35
It doesn't work. I have tried both things but still the same error. maybe I put the files in the wrong map or something. I have 2 scriptbanks one in my documents and one where the game is installed and I have put the script file in both.

Loirt
Hador
User Banned
Posted: 19th Dec 2009 01:42
.tga is the extension in the script, but you said it was .png. try fixing that if it is the prob.

DevBox forum http://www.devbox.6te.net
RATE PIXEL game ratings http://ratepixel.orgfree.com
My site http://www.hador1996.webs.com
Bootlicker
16
Years of Service
User Offline
Joined: 29th Mar 2009
Location: Germany
Posted: 21st Dec 2009 18:21
maybe it's becuase on the hudx and hudy it's 130 and 300 which translates to %130 and %300.

These numbers represent the % of the axis you want the image to display. For example if I wanted an image directly in the middle I would put hudx=50 and hudy=50.

Thanks,

Ben
Old But Still Kickin
17
Years of Service
User Offline
Joined: 29th Feb 2008
Location: U.S.A.
Posted: 28th Dec 2009 04:04 Edited at: 28th Dec 2009 04:05
Bootlicker is correct in saying this.

FPSC uses the center point of a hudimage as it primary x and y location.

x can be 0 to 100
y can be 0 to 100

If it's a large hud say 1024 x 768 just use 50 for both x and y. that will put the hud center screen.

x=130 y=300 will put the hudimage way out of the screens display region. It's there just not where you can see it.

Hope it helps.

Never give up trying. Just try it another way that works for you.

Login to post a reply

Server time is: 2025-05-27 23:32:32
Your offset time is: 2025-05-27 23:32:32