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 / after effects

Author
Message
Day Dreamer
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: cumbria
Posted: 4th May 2007 14:48
hi guys i am trying to establish if its possibly to create an after effect, like when i have a explosion, creating a fire that can fade away or stay. blowing up power boxs and having sparks etc, i got benge sprites and would like to create more effects, but i am not able to grasp how to do this, any help gratfully welcome thxs jason. ( i have tried the search options)
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 4th May 2007 22:15 Edited at: 5th May 2007 17:04
Yes. You can do that with scripting. Here's how.

1. Place a dynamic entity in your level.

2. give the entity a destroy script that will activate the decal defined by the ifused field.



3. place the name of the decal in the ifused field of the entity to be destroyed. (e.g. smallfire)

4. Place your smallfire decal around the entity to be destroyed.(use the PageDwn key to bring the decal to the floor.)

5. Change the start script of the decal to appear1.(repeatsound.fpi is the default, but keeping that will let you hear the fire before you can see it.)

6. change the main script of the decal to the following script:
(you'll have to name it and save as an .fpi)



7. Test the level. Once you destroy the entity the small fire will appear.

*HINT:
you can make the small fire harmful by adding the following command to the script.



That's it! Good luck!

-Nue B.

Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 5th May 2007 17:05 Edited at: 5th May 2007 17:05


Sorry for the bump, I just wanted to make sure Day dreamer read my edit.

flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 5th May 2007 17:10
wow, i wasnt even looking for this, but it was very helpful, thanks a million!


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroupproductions.com/
Day Dreamer
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: cumbria
Posted: 5th May 2007 21:19
hey thanks a million thats has been very helpful not just to me but others who may ask this very same question thank you.
Day Dreamer
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: cumbria
Posted: 5th May 2007 22:20
sorry to be a pain, i have understood how to achieve this, but i am now struggling to apply it i have followed the manual on how to write scripts, but they dont work, even the basic one in the manual, when the script is saved its saved like (myfile name).fpi.txt is fpi.txt right? i dont think it is.
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 5th May 2007 22:36
Quote: "wow, i wasnt even looking for this, but it was very helpful, thanks a million!"


I'm glad you like it flashing snall
if you think that's cool, you should see my Remote-Controlled Robot script in action!

smith
17
Years of Service
User Offline
Joined: 20th Jan 2007
Location: iraq.
Posted: 6th May 2007 03:30
Quote: "(myfile name).fpi.txt is fpi.txt right?"

No, dude its txt.fpi..
When you save with notepad, it will ask what format, change that to All Files. In the filename input change it to "watever.fpi".



big..hahaha..you said big!
Day Dreamer
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: cumbria
Posted: 6th May 2007 08:31
thks for your help i will try this when i get home thks
Day Dreamer
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: cumbria
Posted: 6th May 2007 15:23
i have got the scripts to work now, one last question if i may, were do i put the harmful script? would like my fires to be harmful.
Man Hunter
17
Years of Service
User Offline
Joined: 28th Nov 2006
Location: Pakistan
Posted: 8th May 2007 14:06
in the hurt zone property maybe.

I learnt a lot, so i changed my name.
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 8th May 2007 21:03
Quote: "i have got the scripts to work now, one last question if i may, were do i put the harmful script? would like my fires to be harmful. "


In the decal.fpi file




Day Dreamer
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: cumbria
Posted: 9th May 2007 17:34
big thanks, but..... i have copied that information and created a fpi file as one should, then i used in fps and when the fire appears i can walk into it without losing health? sorry to be a pain, you have been so helpful so far, any suggestion on this?

Login to post a reply

Server time is: 2024-11-23 15:46:20
Your offset time is: 2024-11-23 15:46:20