Reflecting/Glare Sun ?

Get help using Construct 2

Post » Wed Feb 19, 2014 10:17 pm

I make a Platformer. I have a Sun that slowly moves. Parallax is 10,100. The Sun hide sometimes in trees. It looks nice in my Opinion but I want to create a effect,something like this http://www.youtube.com/watch?v=PIznB2A--a4 Is this possible ?
B
7
Posts: 61
Reputation: 393

Post » Wed Feb 19, 2014 10:34 pm

Yes, this is actually quite easy to do. Here, I'll draw up an image:
Image

While the player is in the trigger area, the flare will line up with the player and will be set to visible until it is out of the trigger area.
Each individual circle will immitate a ring of light, like a beam.
You will want each individual circle to line up with the flare, and slowly decrease in Y coordinate so it looks like it is getting more in your face as it follow the player and the player gets closer to the origin. (the formula for the flare will be a pain in the ass, so good luck.)
Last edited by Rozen on Wed Feb 19, 2014 10:35 pm, edited 1 time in total.
B
6
S
2
Posts: 19
Reputation: 547

Post » Wed Feb 19, 2014 10:35 pm

You could have one sprite object as the sun in the background and the glare effect on a layer on top with additive effect. You could easily make this with lens flare in photoshop. Pin the glare to the sun. Use events to control the opacity and size of your glare sprite. Check If SUN is overlapping your BGsprites or some kind of invisible sprite for collision detection. If it is overlapping check distance from center of sun to center of collision-sprite, if the sun is bellow your collision-sprite use the distance to make a multiplier for your glare sprites opacity and size. I think you will find this fairly resource intensive but I cannot see another way of doing it.
B
5
S
1
G
1
Posts: 17
Reputation: 557

Post » Wed Feb 19, 2014 11:46 pm

Rozen wrote:Yes, this is actually quite easy to do. Here, I'll draw up an image:


While the player is in the trigger area, the flare will line up with the player and will be set to visible until it is out of the trigger area.
Each individual circle will immitate a ring of light, like a beam.
You will want each individual circle to line up with the flare, and slowly decrease in Y coordinate so it looks like it is getting more in your face as it follow the player and the player gets closer to the origin. (the formula for the flare will be a pain in the ass, so good luck.)


Yes it's work. Thank you very much. :shock:
But it looks a litte bit strange. How the sprite should looks like ? I mean a square isn't right,i also need that it's looks like more dynamic and naturally.
B
7
Posts: 61
Reputation: 393


Return to How do I....?

Who is online

Users browsing this forum: sean080 and 5 guests