[Feature request] Set width & height for Light object

New releases and general discussions.

Post » Tue May 24, 2011 3:47 pm

As the title says, the Light object is currently as of Construct Classic r1.2 missing actions for setting the width & height in events, which is quite damn baffling. It'd be pretty important to get something like this working as soon as possible.

EDIT: In other Light-related news, this bug that I reported over a year ago still exists... which makes me pretty sad since it hinders the usability of the Light object tremendously. You practically can't do anything dynamic with them.
B
18
S
8
G
4
Posts: 137
Reputation: 3,196

Post » Wed May 25, 2011 5:33 am

I usually just use sprites for lights it almost does the exact same thing as Light object is buggy anyways so I don't trust it
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Wed May 25, 2011 2:36 pm

Except for the little fact that shadow casters work with the Light objects.
B
11
S
2
G
3
Posts: 101
Reputation: 2,152

Post » Wed May 25, 2011 3:48 pm

You can try using the light object with a blank graphic, then create a sprite at the centre of the light object with the image you want (and decrease it's opacity).

The shadows should still cast (the light range isn't dictated by the graphic I think)
Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
127
S
43
G
18
Posts: 2,240
Reputation: 20,592

Post » Thu May 26, 2011 3:43 pm

[quote="Jayjay":2b8oda47]You can try using the light object with a blank graphic, then create a sprite at the centre of the light object with the image you want (and decrease it's opacity).

The shadows should still cast (the light range isn't dictated by the graphic I think)[/quote:2b8oda47]

The light object's graphic itself is required to handle multi-level shadows on a single layer such as in this example:



You can do single-level shadows in that exact way though, but that's not what we're looking at. Besides creating objects dynamically would still require differentiation through private values in our implementation.
B
11
S
2
G
3
Posts: 101
Reputation: 2,152

Post » Thu May 26, 2011 7:21 pm

I think using a contained hash table as workaround for the bugged private variables wouldn't be too much of a hassle, that doesn't help with the missing width/height actions though.

I don't know if there's any reason at all the object doesn't have these actions. I hope it's not by design to make some of the Light object's functionality possible in the first place. Someone from Scirra or somebody who is currently involved in developing Construct Classic (hey lucid, hey r0j0 :) ) could clarify this issue I suppose.

I'd also very much like to see this resolved and not only because I'm itching to get my hands on Daiz' and Zotged's great looking project.
B
23
S
6
G
11
Posts: 1,047
Reputation: 8,065

Post » Thu Dec 15, 2011 12:57 am

Ahem. Not trying to sound obnoxious, but having this feature would help a lot. The topic had drifted out of immediate sight.

Then there's this too.

Edit: Nevermind lucid fixed everything, will be in the next CC buildZotged2011-12-15 21:00:00
B
11
S
2
G
3
Posts: 101
Reputation: 2,152


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 0 guests