Jump to content


Photo

Easy Lighting V7.0.2 | Last Updated: 06/07/11


  • Please log in to reply
466 replies to this topic

#101 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 26 December 2008 - 06:51 AM

Well, you could "re-use" lights perhaps. After the particle or what-not is destroyed, have it jump to another particles position.
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#102 flankattack

flankattack

    BETA Tester

  • New Member
  • 407 posts

Posted 26 December 2008 - 09:20 PM

Wow, even better now!!
  • 0
Spell my username as: flankattack
I specialize in ALPHA and BETA testing as well as game design. Currently testing 2 games. PM for more info.
Every time you use "Treat Uninitialized Variables As Value 0", The United States of America declares war.

#103 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 06 January 2009 - 03:51 AM

I have a request which is quite urgent sorta,
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 :(
  • 0

Posted Image


#104 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 12 January 2009 - 08:18 AM

@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.
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#105 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 12 January 2009 - 01:11 PM

@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.

If surface_exists lol?
Actually the new version may have fixed this error for him. Not sure.

Edited by Krisando, 12 January 2009 - 01:16 PM.

  • 0

Posted Image


#106 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 12 January 2009 - 08:29 PM

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?
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#107 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 13 January 2009 - 09:11 PM

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?

Hmm, Id prefer a returned value so I could either display a message or notify a the game server.
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.

  • 0

Posted Image


#108 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 14 January 2009 - 05:01 AM

Awesome, 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. ^_^
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#109 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 14 January 2009 - 07:36 PM

Awesome, 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. :P

Click oh duh me xD I forgot this is an extension heh ^_^
  • 0

Posted Image


#110 A saurus1

A saurus1

    GMC Member

  • Sandbox Moderators
  • 1609 posts
  • Version:GM8.1

Posted 16 January 2009 - 02:50 PM

Could you add 4 more things?

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 :D ), it would set how fast the light blinks, flashes, or changes its alpha.

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.

  • 0

#111 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 16 January 2009 - 09:58 PM

Hey, thanks for the ideas, I am liking them. :)

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. :medieval: (In fact, it should be faster if you were to do it instead of me placing a whole bunch of if's or switch statements I think)

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. :D

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.

  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#112 A saurus1

A saurus1

    GMC Member

  • Sandbox Moderators
  • 1609 posts
  • Version:GM8.1

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.

  • 0

#113 tablekorner

tablekorner

    GMC Member

  • GMC Member
  • 121 posts

Posted 19 January 2009 - 05:54 PM

every time i try and open example it says cant find lighting gex?
  • 0

#114 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 20 January 2009 - 05:40 AM

@A saurus1: You can have a hud, draw it at depth -100001 I think it is. Though, I will try to come up with a work around for that. I would prefer not to have the user define the light's depth, but I need to think of a better way to draw things on top. As for the light_set_effect, it changes the max amount of alpha value that will be changed while flickering. If you want any further effects for your lights, you can create them yourself. It is actually quite easy. I wasn't even planning on having effects, but I did it so people wouldn't have to re-program basic effects every time, sorta like how I have the built in circle light. It is just there to save time, if it isn't to your exact liking, make it custom.

@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. :D
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#115 bocochoco

bocochoco

    GMC Member

  • New Member
  • 140 posts

Posted 21 January 2009 - 07:44 AM

nice update scyler. i love this gex
  • 0

#116 TheMyst

TheMyst

    GMC Member

  • New Member
  • 166 posts

Posted 21 January 2009 - 06:18 PM

This will add some nice effects to my games scenery. Thanks!
  • 0
Level Editor Example: Use/Abuse as you wish.
My PC (recently upgraded): Asus P5Q SE2 Mainboard, Core 2 Quad @ 2.33 (will overclock), 4GB OCZ RAM, Onboard Sound by VIA Technologies, nVIDIA BFG 9800GTX.
My old stuff is going on Craigslist: EVGA 650i Ultra Mainboard, 2GB Ram, 2.33 Core 2 Duo (OC'd to 3.0), nVIDIA 8600 GT.
Copy and paste this into your signature if you DON'T GIVE A #$@% about religion, but nonetheless are annoyed by people who wear it like a badge.

#117 Galious

Galious

    GMC Member

  • New Member
  • 8 posts

Posted 24 January 2009 - 12:09 AM

Hi there! I've been using your gex for a while and it is really great. The problem is that I don't know how, it suddenly rendered everything wrong, like in negatve


Please take a look... this should be all dark, with a torch and little glowing monsters
Posted Image


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.

  • 0

#118 Romano

Romano

    GMC Member

  • New Member
  • 675 posts

Posted 24 January 2009 - 01:31 AM

Looks amazing, too bad its not possible in lite :\
  • 0

#119 bocochoco

bocochoco

    GMC Member

  • New Member
  • 140 posts

Posted 24 January 2009 - 01:52 AM

Hey Scyler, any chance of getting a function to determine how much light is being drawn in a particular spot? A value between 0 and 1 would be enough.
  • 0

#120 LoserHands

LoserHands

    GMC Member

  • New Member
  • 17 posts

Posted 24 January 2009 - 07:40 PM

How do you set a light's depth? So it doesn't go over a wall, not asking for a shadow system, just that I can give the illusion that there is one in the game.

Edited by LoserHands, 24 January 2009 - 07:43 PM.

  • 0

#121 ccloud1833

ccloud1833

    GMC Member

  • New Member
  • 34 posts

Posted 24 January 2009 - 10:47 PM

Great job very professional.
  • 0

#122 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 24 January 2009 - 11:53 PM

Thanks for all the great comments and compliments guys. :D

@Galious, Hm... that is an odd problem that I haven't ever come across. Though, if it is working properly on other computers I would have too assume it is your computer. Though, would you mind sending me the editable so I can look through it and see how you are using the lighting functions? (I have seen a few people's where they are using them completely incorrectly which lead to some really wacky results)

@bocochoco, sorta like an alpha check to see how dark/light it is at a point? I tried adding a function like that earlier, and sadly enough I could only come up with one way to do it, but it was an EXTREMELY slow function and could only be called in the create/alarm/etc. events. So I dropped it.

@LoserHands, there is currently no way to change the lighting's depth. It is either drawn at -10,000 or -100,000 depth. Though many people seem to be requesting that I add depth, so perhaps I will add that to the next updated. Though, there will only be able to be one depth for the entire lighting system, not a separate depth for each individual light.
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#123 Galious

Galious

    GMC Member

  • New Member
  • 8 posts

Posted 25 January 2009 - 12:55 PM

@Galious, Hm... that is an odd problem that I haven't ever come across. Though, if it is working properly on other computers I would have too assume it is your computer. Though, would you mind sending me the editable so I can look through it and see how you are using the lighting functions? (I have seen a few people's where they are using them completely incorrectly which lead to some really wacky results)


I found the problem! You DO NOT have to put the option "Treat the initialized variables as 0" on in the ERRORS general options, because it messes everything up.

By the way, how would you make rotating lights? I see those on the second example but can't think of how to do it.
  • 0

#124 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 26 January 2009 - 12:48 AM

Odd, it doesn't effect it at all for me if that function is checked or not. (And I can't think of why it would) But as long as it is working right... huh.

As for rotating lights, when you use the function light_add_light() it returns the ID number of the light created. You can later change the lights properties by using it's ID number and the function light_set_light(). The argument angle changed the angle the light is facing. (0 is facing to the right) so if you change that value it will rotate the light. (You could have a constantly increasing variable and set the angle to that)
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#125 Galious

Galious

    GMC Member

  • New Member
  • 8 posts

Posted 27 January 2009 - 10:02 PM

Odd, it doesn't effect it at all for me if that function is checked or not. (And I can't think of why it would) But as long as it is working right... huh.

As for rotating lights, when you use the function light_add_light() it returns the ID number of the light created. You can later change the lights properties by using it's ID number and the function light_set_light(). The argument angle changed the angle the light is facing. (0 is facing to the right) so if you change that value it will rotate the light. (You could have a constantly increasing variable and set the angle to that)


Duh... it happened again. You were right, it has nothing to do with that setting. I do not know what did I do to repair it the last time. It's bugging me a lot...

Could it be something related to graphic acceleration?
  • 0

#126 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 28 January 2009 - 06:51 AM

Hm... Tell me, does it do this with the included example? Also, what if you created a .gmk and only had one object and one simple light, does it still do it?
You could try removing lights, functions, and such (Testing after every change) to see if it is a specific command that is causing the problem. It really looks like something is going wrong with the alpha and blend functions. As if it was not setting alphas and removing the whole sprite shape, then using the oposite blend mode...
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#127 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 31 January 2009 - 07:52 AM

@Galious, Hm... that is an odd problem that I haven't ever come across. Though, if it is working properly on other computers I would have too assume it is your computer. Though, would you mind sending me the editable so I can look through it and see how you are using the lighting functions? (I have seen a few people's where they are using them completely incorrectly which lead to some really wacky results)


I found the problem! You DO NOT have to put the option "Treat the initialized variables as 0" on in the ERRORS general options, because it messes everything up.

By the way, how would you make rotating lights? I see those on the second example but can't think of how to do it.

Does on some pcs.
Will try 4.0 :lol:

Edited by Krisando, 31 January 2009 - 07:52 AM.

  • 0

Posted Image


#128 thejonjon

thejonjon

    GMC Member

  • New Member
  • 94 posts

Posted 01 February 2009 - 05:22 AM

Looks amazing, and the replies your getting show me that its as good as the pics. Will try.
  • 0

#129 frog

frog

    GMC Member

  • New Member
  • 228 posts

Posted 01 February 2009 - 11:11 AM

i get a weird error

for new__object93 or something: draw event:
trying to use non-existing surface...

i copied and pasted your codes into my game and yes the gex is installed too...

if u want my gmk file i could send it too ur PM...
  • 0


Game Maker 8 Pro
-------------------------------------------------------------

YAY NEW WEBSITE !
Click to visit my website

#130 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 01 February 2009 - 08:02 PM

This is so odd, multiple people have contacted me of problems with the surface. I can't understand why it wouldn't create the surface! I am looking into it, but recently my computer went down so I can't work on anything till it is fixed. I will see if I can get it up and running, then I will fix the .gex.
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#131 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 02 February 2009 - 03:54 AM

i get a weird error

for new__object93 or something: draw event:
trying to use non-existing surface...

i copied and pasted your codes into my game and yes the gex is installed too...

if u want my gmk file i could send it too ur PM...

Same error my friend got which was fixed in the newest version, need the surface name so we can go if surface_exists =/
  • 0

Posted Image


#132 Hello Darren

Hello Darren

    Pirate

  • Banned Users
  • 275 posts
  • Version:Unknown

Posted 07 February 2009 - 10:00 PM

I will definitely be using this when I start my next game. Awesome job dude!

#133 Gamer-Alex

Gamer-Alex

    GMC Member

  • New Member
  • 135 posts

Posted 11 February 2009 - 04:32 PM

I can't even run the game, it says there isn't a library file and nothing will work because of it.
  • 0

#134 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 12 February 2009 - 06:55 AM

That is because you need to install the .gex file... seriously people, if you don't know how to install .gex's then don't even view this part of the forum. :lol:

To learn to install .gex files, check out this sticky topic.

For the rest of you, sorry, I haven't had time to work on the .gex (including fixing that strange error) because I have been having computer troubles recently. The hard-drives have been wigging out on me and I finally got this computer back up and working. Now! To get my rear in gear and get this problem fixed! :P

Ok, small update guys! Version 4.1 is now avaliable! What is different:

-I attempted to fix the bug so that instead of giving an error when the surface isn't created, then it simply turns them off permanently. This shouldn't be a big problem because there is no reason why the surface wouldn't be created unless it was something with the computer.
-I added a simple function, light_object_set_on(id,true), which I think you guys will appreciate. You can set a specific object to be effected by lights or not! In the example, click on a square for it to be enabled/disabled.
-I removed the light_set_effect() function, I hated that function. Well actually it is still there (but hidden because I wish it never existed) so if you want to use it you can, but don't expect help with it.

Edited by KC LC, 13 February 2009 - 07:35 AM.

  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#135 bocochoco

bocochoco

    GMC Member

  • New Member
  • 140 posts

Posted 17 February 2009 - 02:07 AM

___________________________________________
In extension function light_end:
Error in code at line 1:
   surface_free(global.__light_draw_surface);global.__light_drawon=false;global.__lighting
_current=0;global.__lightsdeleted=0;global.__light
f
lashchance=2;global.__lightblinktime=30;global.__l
i
ghtflickerchance=2;if (sprite_exists(global.__light_circle))sprite_delete(global.__light_circle);if (sprite_exists(global.__light_horz))sprite_delete(global.__light_horz);if (sprite_exists(global.__light_vert))sprite_delete(global.__light_vert);global.__lightingusingcolor=false;global.__li
ghtingiscurrentlyon=false;if (instance_number(global.__lightintobj)>0){with (global.__lightintobj)instance_destroy();}if (object_exists(global.__lightintobj))object_delete(global.__lightintobj);

at position 21: Unknown variable __light_draw_surface

Got this when closing down the game.. v4.1

edit: issue solved. forgot to add a light :(

Edited by bocochoco, 17 February 2009 - 02:41 AM.

  • 0

#136 frog

frog

    GMC Member

  • New Member
  • 228 posts

Posted 18 February 2009 - 05:24 PM

somehow my game just wont listen to the light commands...
when i made a new game (just to see if it works)

the light works correct.. but in my topdown shooting game the lights wont even work...-.-
its not using any surfaces or 3d .. just plain 2d... so i dont know why...
guess i have to start over the shooter...
anyway.. nice gex mate
  • 0


Game Maker 8 Pro
-------------------------------------------------------------

YAY NEW WEBSITE !
Click to visit my website

#137 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 19 February 2009 - 04:47 AM

Is the surround lighting even showing up? If not, then you probably didn't call the function to turn the lighting on. (it is off by default) Use light_main_set() to do so. Also, you have to turn the lights on when you create them, so if you don't specifically tell it to do so (light_set_on()) then the screen will be a solid color or gradient depending on the surround lighting. If that doesn't fix it, mind if you give me an example? (Editable, or perhaps your scripts?)
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#138 frog

frog

    GMC Member

  • New Member
  • 228 posts

Posted 19 February 2009 - 03:48 PM

thanks i will give it another try.. ill edit later or post later ^_^
  • 0


Game Maker 8 Pro
-------------------------------------------------------------

YAY NEW WEBSITE !
Click to visit my website

#139 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 21 February 2009 - 06:36 AM

Any luck, frog? No reply yet. :P

Anyone else still interested in this? :D I am thinking about stopping working on this .gex because it seems pretty complete, so if you have any ideas that you want implemented speak up now while I am still interested! :D
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#140 sargunster

sargunster

    GMC Member

  • New Member
  • 449 posts

Posted 22 February 2009 - 12:22 AM

Anyone else still interested in this? :D I am thinking about stopping working on this .gex because it seems pretty complete, so if you have any ideas that you want implemented speak up now while I am still interested! :P

Stop work? Never. Hold maybe, but never stop.
  • 0

#141 bocochoco

bocochoco

    GMC Member

  • New Member
  • 140 posts

Posted 23 February 2009 - 01:40 AM

Noo dont stop working on it.
  • 0

#142 frog

frog

    GMC Member

  • New Member
  • 228 posts

Posted 23 February 2009 - 09:26 PM

No dont stop.. we love this gex..
  • 0


Game Maker 8 Pro
-------------------------------------------------------------

YAY NEW WEBSITE !
Click to visit my website

#143 sargunster

sargunster

    GMC Member

  • New Member
  • 449 posts

Posted 24 February 2009 - 01:56 AM

Noo dont stop working on it.



No dont stop.. we love this gex..


Haha :o. Ditto.
  • 0

#144 Hardly

Hardly

    GMC Member

  • New Member
  • 40 posts

Posted 24 February 2009 - 11:36 AM

I've had lot's of problems trying to implemment a decent lighting engine on my current project, and I finnaly found some pretty decent lighting stuff wich will for sure save lots of my time while working on my current platformer..

The .gex file and fuctions may be considered complete, but quitting the project (if we can call it that way) shouldn't be an option for now..

Keep the good work mate :3
  • 0



#145 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 25 February 2009 - 08:00 PM

Didn't think this many people were actually using it. :whistle:
I will of course update if there is an error or bug found, but as for big new features, I don't really know what else I could add. So in that aspect, I am pretty much done, unless you guys have something in mind that you want me to add?
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#146 shiritt

shiritt

    GMC Member

  • New Member
  • 29 posts

Posted 26 February 2009 - 10:10 AM

Dont stop, you can always add depth, or functions for drawing HUD's more efficient
  • 0
The most complete Tower Defence you'll ever find!
<a href="http://gmc.yoyogames...owtopic=471644" target="_blank"><img src="http://img709.images...odiantrans.gif" border="0" class="linked-sig-image" /></a>
Member of:
<img src="http://img7.imagesha...orincsmall.gif" border="0" class="linked-sig-image" />

#147 frog

frog

    GMC Member

  • New Member
  • 228 posts

Posted 27 February 2009 - 04:16 PM

yes or simplefy the code usage.. like

light_main instead_ light_main_set
light_on
light_off

etc.. ^_^ theres always something ^_^
  • 0


Game Maker 8 Pro
-------------------------------------------------------------

YAY NEW WEBSITE !
Click to visit my website

#148 bocochoco

bocochoco

    GMC Member

  • New Member
  • 140 posts

Posted 01 March 2009 - 06:24 PM

Or you could try to figure out shadows... just an idea =)
  • 0

#149 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3022 posts
  • Version:GM:Studio

Posted 02 March 2009 - 03:23 AM

I suppose I could add depth and re-label some of the functions. ::lmao:: As for shadows bocochoco, I have actually been trying to find a fast method to do it... Currently having a 640x480 room 1/4 filled with objects, and one light source brings fps down to around 20-25 on my computer. So I have quite a bit of work to do yet. The trouble I am having is making shadows which keep the shape of the object, otherwise it would be a sinch to make.
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#150 bocochoco

bocochoco

    GMC Member

  • New Member
  • 140 posts

Posted 04 March 2009 - 10:50 PM

Well make it work buggy, release it as an alpha =) Look at some other code that does the desired effect and see how they do it? I've looked into it before, I think that they do something with something called a 'paralax'? I duno, i gave up after 15 minutes :)

Maybe make aliases for the functions (ex. l_add instead of light_add), I know it doesnt seem like a lot, but those four characters are taxing on my fingers =D
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users