Easy Lighting V7.0.2 | Last Updated: 06/07/11
#101
Posted 26 December 2008 - 06:38 AM
#102
Posted 26 December 2008 - 06:51 AM
#103
Posted 26 December 2008 - 09:20 PM
#104
Posted 06 January 2009 - 03:51 AM
likey due to my friends video card (internal hp one eeuh) he receives the following message:
___________________________________________
ERROR in
action number 1
of Draw Event
for object int_obj:
Trying to use non-existing surface.
___________________________________________
So in "light_init(colour,true);" could you return if it has successfully initilised returning either 1 or 0 like 39dll and many others. Thankyou
#105
Posted 12 January 2009 - 08:18 AM
Also, for those interested, I ran a speed test on my computer (2.4Ghz, 2GB RAM) with a 3000x3000 room and a view and managed to get constant 30fps to about 900 256x256 lights, then it went and hung out at 27-28 for another hundred and I shut it off. I created lights and destroyed the objects, so it was just lights. I am still thinking of a way to destroy lights, in the mean time I am working on some "get" functions that check if a light is on, what view they are being drawn in, etc.
#106
Posted 12 January 2009 - 01:11 PM
If surface_exists lol?@Kris, well I actually removed that function from the newest version, and if you have the newest version you shouldn't be using that function.
(It is hidden, but I think you can still call it) Also, either way, there isn't really a way for me to check if the surface is created. (That I know of)
Also, for those interested, I ran a speed test on my computer (2.4Ghz, 2GB RAM) with a 3000x3000 room and a view and managed to get constant 30fps to about 900 256x256 lights, then it went and hung out at 27-28 for another hundred and I shut it off. I created lights and destroyed the objects, so it was just lights. I am still thinking of a way to destroy lights, in the mean time I am working on some "get" functions that check if a light is on, what view they are being drawn in, etc.
Actually the new version may have fixed this error for him. Not sure.
Edited by Krisando, 12 January 2009 - 01:16 PM.
#107
Posted 12 January 2009 - 08:29 PM
Tell me if the error is gone with the newest version please, that would be great help. If not, I could use the function to check and have the game say an error and end the game if you like. Or, I could say an error and remove all lighting functions so the game continues without lights. Which of the two would you prefer?
#108
Posted 13 January 2009 - 09:11 PM
Hmm, Id prefer a returned value so I could either display a message or notify a the game server.Rofl, your right. Wow, and I even looked through the manual for that function. Must have skimmed over it (it was1:30 in the morning so I have an excuse.
)
Tell me if the error is gone with the newest version please, that would be great help. If not, I could use the function to check and have the game say an error and end the game if you like. Or, I could say an error and remove all lighting functions so the game continues without lights. Which of the two would you prefer?
And it was 2:30 am when I posted the last one ;P lol
Also latest version works on his pc =]
Edited by Krisando, 13 January 2009 - 09:34 PM.
#109
Posted 14 January 2009 - 05:01 AM
By the way, I couldn't return something, because you aren't calling the function.
#110
Posted 14 January 2009 - 07:36 PM
Click oh duh me xD I forgot this is an extension hehAwesome, glad it works for him now. Must have been something with the previous version. Guess I don't need to add an error screen now.
By the way, I couldn't return something, because you aren't calling the function.
#111
Posted 16 January 2009 - 02:50 PM
1. An lt_flicker option. This would be great for effects like the lighting of fire, which unlike lt_flash, does not randomly go on and off. Instead, the lt_flicker setting would make the light randomize it's alpha a little bit over time, like it is flickering.
2. A function light_set_frequency(frequency). This would set the frequency of the effect. For lt_normal, this would be obsolete, but for lt_blink, lt_flash (and maybe lt_flicker
3. Allow alpha values over 1 to be drawn as simply a light repeatedly drawn. What I mean is, ceil() the alpha value of the light, and repeat the drawing of that light that many times. After each time you draw it, subtract 1 from the alpha value. This would mean you could have really intense lights. If you need a code example, I can give you one.
4. A depth value for the lights (or light systems, however your lighting extension works).
BTW It's really good already, but I think this would make it even better.
Edited by A saurus1, 16 January 2009 - 03:16 PM.
#112
Posted 16 January 2009 - 09:58 PM
1. I will certainly add this, great idea, thanks.
2. This one could work, but I use 1 global variable to adjust all the lights, which makes them all flicker and whatnot together. So if you were to set the frequency it would adjust all the lights. I don't mind doing that, and I suppose it could be useful, just not very flexable. And remember, you can always create your own effects using the light_set_ligh() function.
3. I think I will pass on this one, if you want more intense lights instead of having the .gex have to do all the extra math and draw multiple lights in one spot, you can do that easily.
4. I have been pondering this one for some time actually, I am trying to think of a purpose for it though. Why would you need it? I will think it over though.
Thanks for the complement by the way, I am currently trying to figure out how to make a function to delete lights. (Which is much harder than you would think, though I think I have finally found a solution.) Once I get that finished I will start working on the rest of the updates which shouldn't take that long.
EDIT: LARGE UPDATE!
Hi guys, I have finished and released version 4 of my lighting .gex! This is what is new:
-Added new effect, lt_colorflicker.
-Added 5 new functions! A few to set some effect properties, but mostly functions to get information like if a light is on etc.
-Added the ability to delete lights! I have finally finished it, and tested it and it works great!
I hope you guys like the update!
Edited by Scyler_27, 16 January 2009 - 11:25 PM.
#113
Posted 17 January 2009 - 12:11 PM
4. I have been pondering this one for some time actually, I am trying to think of a purpose for it though. Why would you need it? I will think it over though.
So you could draw things like HUD's and Healthbars over the lighting.
Also, what are you using for your lighting system that makes it so hard to delete them.
Edit: Does light_set_effect() have any effect on lt_color flicker. If not, it should control the flickering speed, so that the alpha values can fade into each other. I.E. the light picks its next alpha value x steps ahead, and then fades towards that. Once it reaches it, the light picks its next one, and fades towards that one. And on and on and on...
That would be really cool.
Edited by A saurus1, 17 January 2009 - 01:14 PM.
#114
Posted 19 January 2009 - 05:54 PM
#115
Posted 20 January 2009 - 05:40 AM
@tablekorner: That is because you need to install the included .gex file. Go here for instructions on doing so. Once you do that everything should work fine.
#116
Posted 21 January 2009 - 07:44 AM
#117
Posted 21 January 2009 - 06:18 PM
#118
Posted 24 January 2009 - 12:09 AM
Please take a look... this should be all dark, with a torch and little glowing monsters

Do you know what happened? I've tried to reinstall the gex, Game Maker ... and it still is the same. The weirdest thing is that it works in my other computer.
Edited by Galious, 24 January 2009 - 12:11 AM.
#119
Posted 24 January 2009 - 01:31 AM
#120
Posted 24 January 2009 - 01:52 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users









