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 Product Chat / Text in game

Author
Message
Firestar
18
Years of Service
User Offline
Joined: 6th May 2008
Location:
Posted: 16th Feb 2010 16:55
I would like to have text appear when I approach a story zone in game, like it is coming through an earpiece or such, however I tried to do this with a png image to keep transparancy and couldn't do it. I am hoping to have it so the text and images appear at the bottom of the screen and are keep their transparency from how I designed them to be. Any help would be great
wizardious
16
Years of Service
User Offline
Joined: 18th Aug 2009
Location: Saskatchewan Canada
Posted: 16th Feb 2010 20:14 Edited at: 16th Feb 2010 20:16
Hey
I altered the door(key) script to play a song when you put a cd into the stereo. When you approach the stereo it displays the text "Please insert cd". Maybe this will give you some idea on how to approach this. I just made the text with gimp, and a alpha background.
;Artificial Intelligence Script

;Header

desc = Key Door (Open 'With Key' and Close)

;Triggers

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pleaseinsertcd.tga,hudname=keydoorcdprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60:hudshow=keydoorcdprompt,hudfadeout=keydoorcdprompt

:state=10,plrdistwithin=60,plrhaskey=1,plrusingaction=1:state=1,setframe=0,sound=$0,musicoverride=audiobank\music\fur elise.wav
:state=1:incframe=0,music=audiobank\music\fur elise
:state=1,frameatend=0:state=2,coloff
:state=2,plrdistfurther=60:state=3,sound=$0,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=10,setframe=0

;End of Script

Login to post a reply

Server time is: 2026-07-21 20:54:37
Your offset time is: 2026-07-21 20:54:37