Haden2 / Spectrum

A horror game under development
0 stars 0 forks source link

Returning light #24

Closed Haden2 closed 9 years ago

Haden2 commented 9 years ago

Didn't do the code to return the light when catching the enemy but I know how. My issue is I added a flare to the light to give it a source and to make it look nicer, but I cannot get the flare to turn back on when pressing Q

thomas-j-sell commented 9 years ago

Fixing the else block bracketing fixed the issue for me. I like the idea of the lens flare, but it seems to be a bit much with it always on. I suggest animating it when the light turns on and letting it fade away, or maybe just subdue it a bit.

Haden2 commented 9 years ago

Ok, that makes a lot of sense. What happened was when I went to add to the if statement, it told me there was an issue because there was an unexpected else statement. I realized there were no brackets separating the if and else statement but I only added brackets to the if, not the else. That makes sense.

Animating it will be no issue whatsoever because it is already animated. Change the fade speed from 100 to 1 and you've got it. I had it like that because I was looking at the light as the source instead of a flare per say. Try the welding flare and see if you prefer that one. Fading it away a bit would be a good idea. It is a bit much, but I also wanted a slight handicap when it came to the flashlight. I dont want it to be the best spectrum to see out of. Having the light on increases the chances of the light monster showing up. Cause like the other spectrums have their own handicaps, so I wanted to make the flashlight kind of have a flaw as well, you know? I'll mess around with it some unless you do it before hand.

Haden2 commented 9 years ago

Ok, this is fixed