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 / Timing disco lights

Author
Message
Azurekite
15
Years of Service
User Offline
Joined: 2nd Mar 2009
Location:
Posted: 3rd Mar 2009 16:16
Hi there i have yet another problem i have tried to create a script which will turn a light on then after a second turn the light off and after another second loop round again to turn it on but whatever i try doesn't seem to work...

Heres my code so far i have used it as the main script of a dynamic light...



Hope someone can figure out whats wrong i have attached a picture of what the code comes out as its just an floating platform with a light in the middle and the light doesn't even come on at all...

Attachments

Login to view attachments
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 3rd Mar 2009 17:34


Can't you just use the script above? If you want a fade effect, use the one below:



Migration Discussion Thread: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
Piracy Discussion Thread:
http://forum.thegamecreators.com/?m=forum_view&t=142774&b=21
Azurekite
15
Years of Service
User Offline
Joined: 2nd Mar 2009
Location:
Posted: 3rd Mar 2009 19:19
I cant use the script you posted because i need more than one timer

Im my game im already using a timer so that script wont work...
Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 3rd Mar 2009 21:22
you can easily use mutliple timers, if you use multiple triggers, so...
my idea is this,: add 4 or 5 dynamic lights, and as I think you want to have a disco like feeling, you can easily place, a red green orange blue yellow light, (what you want) and then you aply a script (to each light one) that will say that it goes of and on, and you can make it somooth and each light different, just by using states and timers, but if you want really this script, you can use multiple timers in one script, with a script CE made.


Red Eye - The Game: Work In Progress - W.I.P. Red Eye Productions
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 4th Mar 2009 04:21
Try the second script, that doesn't use a timer

Migration Discussion Thread: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
Piracy Discussion Thread:
http://forum.thegamecreators.com/?m=forum_view&t=142774&b=21
Azurekite
15
Years of Service
User Offline
Joined: 2nd Mar 2009
Location:
Posted: 4th Mar 2009 10:26 Edited at: 4th Mar 2009 17:55
Yep it works thanks!

Login to post a reply

Server time is: 2024-11-24 20:21:40
Your offset time is: 2024-11-24 20:21:40