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 / Enemy blink on death

Author
Message
Scurvy Lobster
18
Years of Service
User Offline
Joined: 3rd Mar 2006
Location: Denmark
Posted: 4th Sep 2012 15:38 Edited at: 4th Sep 2012 15:39
Hi!

I am trying to make a new destroy script where a dead enemy will blink after the death animation instead of the normal fadeout. Similar to old games where dead enemies blinked when you killed them.

My script is here:



I can't make this work at all I am afraid. Can anyone see where the problem lies?

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 4th Sep 2012 17:32 Edited at: 4th Sep 2012 17:33
First, I would replace "timerstart/timergreater" with "etimerstart/etimergreater". Second, "coloff/colon" are actions. With regards to your last line, you are missing a colon.




Twitter: @NFoxMedia
Scurvy Lobster
18
Years of Service
User Offline
Joined: 3rd Mar 2006
Location: Denmark
Posted: 4th Sep 2012 23:18
Thanks for the help Blackfox! I didn't know about etimergreater

Enemies disapear now and collision is off. That's a big step forward.

Blinking is still not active and I must be doing something wrong with setalphafade. Enemies appear visible for 1,5 sec. now and then vanish.

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 5th Sep 2012 04:37
setalphafade is an action. just make that adjustment then it will work.

Login to post a reply

Server time is: 2024-11-23 22:32:18
Your offset time is: 2024-11-23 22:32:18