Lens Flare!

Discussion and feedback on Construct 2

Post » Thu Oct 01, 2015 10:34 am

Hi @eli0s, awesome effect!

Im trying to put the lens flare to an sprite object but something in the code wont let me, it has to do with the every tick->Hotspot line of code, i cant change the value mouse.x to a sprite.x.

Thanks.
B
4
S
1
Posts: 33
Reputation: 439

Post » Thu Oct 01, 2015 12:58 pm

@bunnie , which part of the flare you want to be on a Sprite, the source (in my example the sun or mouse.x/y) or the other end which is on the opposite side? What effect you're trying to achieve? Can you provide a picture or something..?
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Fri Oct 02, 2015 2:11 am

eli0s wrote:@bunnie , which part of the flare you want to be on a Sprite, the source (in my example the sun or mouse.x/y) or the other end which is on the opposite side? What effect you're trying to achieve? Can you provide a picture or something..?


Im trying to make the exact same effect as your demo but instead following the mouse x and y (sun) i want to follow a sprite object x and y.

I made the layers work (since i have only 3 layers in the game) but the lens flare only appears for a millisecond and its gone.
B
4
S
1
Posts: 33
Reputation: 439

Post » Fri Oct 02, 2015 11:39 am

@bunnie , have you tried replacing each and every mouse.X, mouse.Y in every expression with yourSprite.X, yourSprite.Y ?

https://www.dropbox.com/s/41otc390ui9tq ... .capx?dl=0
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Fri Oct 02, 2015 12:30 pm

Recently saw this on imgur:
http://imgur.com/gallery/imubKvE
Image ImageImage
B
171
S
50
G
179
Posts: 8,382
Reputation: 113,458

Post » Mon Oct 05, 2015 11:30 am

eli0s wrote:@bunnie , have you tried replacing each and every mouse.X, mouse.Y in every expression with yourSprite.X, yourSprite.Y ?

https://www.dropbox.com/s/41otc390ui9tq ... .capx?dl=0


Thanks a lot! made it work with that last capx.

This is where i got stuck with your first example file:

Image

Thanks again, really cool effect.
B
4
S
1
Posts: 33
Reputation: 439

Post » Mon Oct 05, 2015 4:38 pm

@bunnie , you are welcome!
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Mon Oct 26, 2015 4:40 am

love the post thanks! it helped a lot!

Also I think I expanded on it a little. what I did was add a paster object from R0J0hound's Paster plugin. this lets you have multiple effects without them cancelling each other out.

https://dl.dropboxusercontent.com/u/57156226/lens%20grit%20effect%202/index.html
ver 2. made a more noticeable effect

and the capx
https://dl.dropboxusercontent.com/u/57156226/lens%20grit%20effect/lens%20grit%20effect.capx


hope this helps!
Last edited by Sir LoLz on Mon Oct 26, 2015 6:06 pm, edited 1 time in total.
B
14
S
5
Posts: 54
Reputation: 1,059

Post » Mon Oct 26, 2015 2:24 pm

@Sir LoLz , nice! The mysterious fireflies from the gritty forest! :)
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Mon Nov 09, 2015 7:32 am

made a new version. what is better about this one is it will let the color of the light source influence the color of the dirt on the lens.

https://dl.dropboxusercontent.com/u/57156226/lens%20grit%202.0/index.html

The red and blue are extreme to show off the effect. if you balance the sprites out with white it would look more natural.
B
14
S
5
Posts: 54
Reputation: 1,059

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests