![]() |
Need help with lights please.
So i'm making a level on the era tileset and I want to add lights to it but I have no idea how. I've asked a bunch of people and all they say is it's an NPC but I don't know what that means. So here is what I do. From my level editor I click Predefined NPCs. I then click on light and set all the numbers to Red:54, Green:31, Blue: 1, and alpha was automatically set to .99. Is their something i'm suppose to add to it and not just click lights. Please, I really need help.
|
1 Attachment(s)
Drag and drop one of these into your level. You can edit the values of the red, green, blue and alpha on the right before dragging it in. Double click the light after being placed to edit its script. |
Something like this is generally preferable to the above as it's not using old Gscript. Note that it will only work online.
PHP Code:
|
Quote:
|
Quote:
In theory it's better to have all of these serverside in the event of it being a static (motionless for example) NPC such as a light, this way it's only the specific variables being sent to clients rather than the script itself, which involves less data transfer. |
Quote:
|
Quote:
Something else which also no longer appears to work serverside is showimg();. On a related note, if you have lots of animated lights via timeout it would be better to use a class script, not so much because it improves usability but because then it is only the class which is required to be downloaded the one time, rather than each NPC script being downloaded as part of the level file. For instance: Class script - PHP Code:
PHP Code:
|
I cliked the outlined person, and before i put him into my level I set the light preferences and when I put it down still no light, I don't know if i'm doing something wrong and the scripts cbk gave me i don't know how to add them correctly.
|
Ok, so I set the light preferences and dragged the little outlined man. And I also used light2.png and the light came out and turned red and all, but now how do I get rid of the ugly blackness around it?
|
Quote:
Quote:
|
oh wow it worked! thank you so much
|
| All times are GMT +2. The time now is 01:34 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.