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 / What sucks about my code?

Author
Message
5dollar Love You Loooong Time
17
Years of Service
User Offline
Joined: 14th Oct 2007
Location:
Posted: 14th Oct 2007 17:46
Okay, I have this animation, that is 1 minute 30 seconds,the first 1 minute of the 30 seconds, need to have a totally black screen.. so I have the black screen file :wat.png and i atempted the script.. but it stays black forever! Once it goes black it never goes back!! the animation starts, as soon as you are in range, and the timer, as soon as the animation starts.. please help!! Here is my script:
Quote: "
;Artificial Intelligence Script

;Header

desc = show pic, wich fades after 60sec of the animation

;Triggers

:state=0:hudreset,hudx=0,hudy=0,hudimagefine=gamecore\huds\wat.png,hudname=new,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60:hudshow=new
:state=10,plrdistwithin=60:activate=2
:state=10,activated=2:state=1,setframe=0,timerstart,sound=$0
:state=1:incframe=0
:state=1,frameatend=0,timergreater=6000:state=2
:state=2,hudfadeout=new



;End of Script
"

please help if you can!
5$LoveYouLooongTime Signing out!!
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 16th Oct 2007 08:18
Try this:



I don't know if that'll do what you're looking for, but the reason it stayed black forever is your last line had a comma, which needed to be a colon.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 16th Oct 2007 14:37
Quote: "hudname=new"

don't forget the file extension


The Swarm of flying pigs is coming...
Killer&Slaughter Machines Pack too!
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 16th Oct 2007 15:22
Pigs:

hudname is an internal function. You don't give a file extension

5dollar Love You Loooong Time
17
Years of Service
User Offline
Joined: 14th Oct 2007
Location:
Posted: 16th Oct 2007 15:59
@Plystire:
Thanks alot pal! It worked excellent! Lol! Oops.. I dint see my fatal error!! I tried everything, from retyping the script to editing other scripts to boxing my monitor reapedetly.. except maybe placing a colon!! Hahaha.. Ahh... Thank you! No more sleepless nights!!! 5$, Love you looooong time!!! Bye!
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Oct 2007 08:32
Glad I could help, 5DLYLT.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 18th Oct 2007 16:58
Quote: "hudname is an internal function. You don't give a file extension"

Sorry, made a mistake. I meant hudimagefine=X.


Deathead Studios. Join now!

Login to post a reply

Server time is: 2024-11-23 23:25:27
Your offset time is: 2024-11-23 23:25:27