Faked Lighting.

Discuss game development design and post your game ideas

Post » Thu Oct 30, 2014 9:41 pm

--In construct 2 we have shadows however having actual lighting isn't really in. The closest I can seem to get it is by using a light sprite and every tick randomizing it size slightly. I also added a shadow light to compliment it.

--For a day and night cycle I added a black sprite over everything else and had it at timed intervals change opacity.

I'm wondering if anyone has any better ideas for what to do for lighting.


The .capx file is attached.
You do not have the required permissions to view the files attached to this post.
Last edited by Snakevenom on Thu Oct 30, 2014 9:45 pm, edited 1 time in total.
B
3
Posts: 3
Reputation: 183

Post » Thu Oct 30, 2014 9:43 pm

Quick addition- The red box can be moved with the arrow keys, it's 8 directional movement.
B
3
Posts: 3
Reputation: 183

Post » Fri Oct 31, 2014 1:24 am

thats really great!!. I am so interested in learning about lighting myself.. adds a certin level of drama and quality to games.. can i use your capx as a model for my game?
living to learn...
B
9
S
1
Posts: 30
Reputation: 1,271

Post » Fri Oct 31, 2014 3:53 am

Actually, yeah. Here, I modified your capx to show a bit better lighting. You could also do some fancier things with additive blending for lights (I do in my game), but this is a good start.
You do not have the required permissions to view the files attached to this post.
B
103
S
38
G
19
Posts: 962
Reputation: 17,986

Post » Fri Oct 31, 2014 2:17 pm

Yeah anyone is free to use it in their own games, the lighting speed will want to be altered for day and night. I changed it because I'm impatient.
B
3
Posts: 3
Reputation: 183


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 1 guest