Realistic flashlight (from bird view)

Get help using Construct 2

Post » Tue Nov 19, 2013 11:44 pm

@Cherico
Great example, thank you! Do you have a tutorial or .capx to share?
B
5
Posts: 2
Reputation: 236

Post » Wed Nov 20, 2013 2:52 am

You won't learn if you avoid complicated stuff because you are a noob ?

"
You can't beat a hard game if you don't even start it up , unless you are a powerful wizard and in that case I want to be your pupil "
- Whiteclaws 2013 , use it and I'll sue you

Do you want Dynamic shadows , if so , you'll need to deal with math ...
Otherwise , have a look at the many tutorials in the tutorials section !Whiteclaws2013-11-20 02:56:11
B
41
S
17
G
17
Posts: 2,247
Reputation: 17,436

Post » Thu Nov 21, 2013 7:17 am

Big big big big SORRY for late answer.
(and sorry for my english)

HERE is the .capx

It's very simple:
On Start every object spawns the shadow-sprite.
Every tick the shadow-sprite's width and height will set to an special value (distance between mouseX,Y and shadow-sprite). Also will look into direction of mouxeX,Y (or wherever the light is).

Thats all!

But it's NOT REAL Light&Shadow, it's more faked, but can be useful ;)
B
21
S
5
G
2
Posts: 181
Reputation: 3,499

Post » Thu Jan 02, 2014 1:00 pm

@Nijek, it will work, but you fill see behind walls and stuff.

btw. Sorry for my long not replying

@Cherico
Many thanks for .capx!

edit. I think it will be little bit harder with walls :/Rexu2014-01-02 13:06:40
B
23
S
5
G
4
Posts: 141
Reputation: 3,260

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest