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 / Trying to make a sprite flash

Author
Message
New Comers Corner
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Dallas Ft.Worth USA
Posted: 20th May 2006 01:53
I thought I could make a decal show, then dissapear, but I obviously flummoxed something. I'm a little distracted today watching the baby, but I thought I typed this in right. Of course I never tried to write a decal fpi before. I may have totally messed this up and not understand what I did:

;Header
desc = flashing decal

;Triggers
:state=0:rundecal=2,timeron,state=1
:state=1,timergreater=1000:SETALPHAFADE=0, timeron, state = 2
:state=2,timergreater = 3000: SETALPHAFADE= 100,state=0
;End of Script

Student Programmer
brummel
18
Years of Service
User Offline
Joined: 26th Nov 2005
Location: Sweden
Posted: 28th May 2006 00:34
ok, first of all; youre on the right way, but, no space between the commands and stuff, and no big characters and timeron should be changed to timerstart. Just change the things i said and the script will work. Good job!

Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 28th May 2006 00:38
but as I recently discovered. you shouldn't use the timer for simple things like this cuz it messes up the timers on more complicated scripts.

(thanks merranvo)

"Guns for show, knives for a pro."
brummel
18
Years of Service
User Offline
Joined: 26th Nov 2005
Location: Sweden
Posted: 28th May 2006 01:05
Yes, yes, we need a resettimer command.

Login to post a reply

Server time is: 2024-11-22 14:57:20
Your offset time is: 2024-11-22 14:57:20