interaction with 2d spotlight

Get help using Construct 2

Post » Sat Dec 28, 2013 4:29 pm

I am trying to figure out a way to do 2d spotlights, that can be affected dynamically by sprites in the scene that move - dynamic shadow casting.

Adding to that I want to be able to use it as a condition when the player is overlapping a shadow or not- so I need to use the dynamic shadow as a colision.

Is this possible to do without external plugins?blurymind2013-12-28 17:12:52
B
40
S
15
G
4
Posts: 426
Reputation: 5,848

Post » Sat Dec 28, 2013 5:23 pm

I've been playing around with this (not got very far) but have a look at http://www.scirra.com/forum/another-waste-of-time_topic83212_post485669.html?KW=#485669 and it might give you some ideas.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Sat Dec 28, 2013 8:12 pm

Hi thank you for the reply!
You have one example capx file, which can not be opened in the current release version of construct (152).
https://dl.dropboxusercontent.com/u/143636437/shadow%20test%203/shadow%20test%203.capx

Are you running a bleeding edge version?
B
40
S
15
G
4
Posts: 426
Reputation: 5,848

Post » Sat Dec 28, 2013 8:35 pm

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Sat Dec 28, 2013 8:37 pm

Actually, it shouldn't be too hard to open it in another version (if you don't feel like downloading >100MB because there is no update system for the software):

  • unzip the .capx file with something like 7-zip in its own folder

  • open the .caproj file with any text editing program (Notepad++ works nicely)

  • find the line "<saved-with-version>XXXXX</saved-with-version>", where the X letters will be the version number

  • change it to whatever version you have (for example r152 -> 15200)



For this, tell me what is "bleeding edge" supposed to mean.Stiivais2013-12-28 20:40:33
B
10
S
1
Posts: 163
Reputation: 1,436

Post » Sat Dec 28, 2013 9:02 pm

@ Stiivais - thanks, I never knew you could do that.

Bleeding edge (or cutting edge) - "State of the art, the highest level of development, as of a device, technique, or scientific field"

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Sun Dec 29, 2013 5:18 pm

is there a way to combine the CANVAS plugin with the LINE OF SIGHT behaviour?

Is there a way to visualize the LINE OF SIGHT behavior - make it look like a flashlight
B
40
S
15
G
4
Posts: 426
Reputation: 5,848

Post » Sun Dec 29, 2013 9:19 pm

I've been playing with the examples I pointed you at above - and am slowly getting closer...is this the sort of thing you are looking for ?

https://dl.dropboxusercontent.com/u/143636437/torchlight%2001/index.html
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Sun Dec 29, 2013 9:25 pm

I want to use multiple torch lights for a stealth game mechanic, where you need to stay in the shadows- in the sense of a platforming game.

Currently there doesnt seem to be a simple solution to create a cone of light that can get affected partially by blocks.

It would be so amazing if someone writes a proper plugin for this. There are numerous dirty hacks. The canvas solution doesnt seem to allow for collision detection on the cone of lightblurymind2013-12-29 21:26:35
B
40
S
15
G
4
Posts: 426
Reputation: 5,848

Post » Mon Dec 30, 2013 1:04 am

@RamPackWobble
Can you share with me the Line of sight hack to get this flashlight effect? I would much appreciate it.
Without a capx file I have no idea how you did it exactlyblurymind2013-12-30 01:05:24
B
40
S
15
G
4
Posts: 426
Reputation: 5,848

Next

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, dop2000, Lordshiva1948 and 5 guests