LoginLogin

some neat little light thing idk

Root / General / [.]

HylianCreated:
:>

Hylian wastes your time: 3

wheres god of smilebasic 2?????????????

This might help anyone trying to make a similar program to the one in question. Watch "Line Of Sight or Shadow Casting in 2D" on YouTube https://youtu.be/fc3nnG2CG8U

I'll make a 2D light engine similar to the shown in the screenshot next week (for everybody's sanity).

I'll make a 2D light engine similar to the shown in the screenshot next week (for everybody's sanity).
Nathaniel saves the day again lol

Wait, people actually want it? I didn't think people actually wanted it. It's just a tiny demo that I made. Also I didn't follow that tutorial, I just made it how i saw fit tbh. Before I upload anything, I'm going to make a more presentable demo and possibly more light sources

Wait, people actually want it? I didn't think people actually wanted it. It's just a tiny demo that I made. Also I didn't follow that tutorial, I just made it how i saw fit tbh. Before I upload anything, I'm going to make a more presentable demo and possibly more light sources
Cool

Wait, people actually want it? I didn't think people actually wanted it. It's just a tiny demo that I made. Also I didn't follow that tutorial, I just made it how i saw fit tbh. Before I upload anything, I'm going to make a more presentable demo and possibly more light sources
For sure, I can't seem to wrap my head around lighting mechanics

This isn't well commentated but here: LDNQ23Z4 Also I haven't tested this on O3DS so it might lag a bit there.
images

This isn't well commentated but here: LDNQ23Z4 Also I haven't tested this on O3DS so it might lag a bit there.
images
Nice job! But it looks like there's no transparency. I haven't really had time to get my lighting engine all nice and tidy yet, but once spring break rolls around I'll probably have time.

Nice job! But it looks like there's no transparency.
What do you mean by this?

Nice job! But it looks like there's no transparency.
What do you mean by this?
Well, it looks like you drew everything only on the gpage, which doesn't support transparency. If you use a combination of sprites and the gpage, then you'll be able to use transparency.

Nice job! But it looks like there's no transparency.
What do you mean by this?
Well, it looks like you drew everything only on the gpage, which doesn't support transparency. If you use a combination of sprites and the gpage, then you'll be able to use transparency.
I created a sprite on line 39... but I'm still confused by what you're saying.

Nice job! But it looks like there's no transparency.
What do you mean by this?
Well, it looks like you drew everything only on the gpage, which doesn't support transparency. If you use a combination of sprites and the gpage, then you'll be able to use transparency.
I created a sprite on line 39... but I'm still confused by what you're saying.
Well, you focused on drawing the light itself. I focused on drawing the shadows. The shadows in my engine cover things up, but in yours they reveal things. We did very similar things, but basically reversed. The light in my engine isn't actually drawn, its just empty space that reveals whats behind it, like the sprite. This allows me to use things like BG tiles and other sprites. Although, you did give me an idea on how I could have a more accurate radial light using sprites.

Nice job! But it looks like there's no transparency.
What do you mean by this?
Well, it looks like you drew everything only on the gpage, which doesn't support transparency. If you use a combination of sprites and the gpage, then you'll be able to use transparency.
I created a sprite on line 39... but I'm still confused by what you're saying.
Well, you focused on drawing the light itself. I focused on drawing the shadows. The shadows in my engine cover things up, but in yours they reveal things. We did very similar things, but basically reversed. The light in my engine isn't actually drawn, its just empty space that reveals whats behind it, like the sprite. This allows me to use things like BG tiles and other sprites. Although, you did give me an idea on how I could have a more accurate radial light using sprites.
Oh, I see. Yeah, the only reason I made mine the way I did is because It allows two light sources to overlap smoothly. The way you made yours allows backgrounds and other elements to appear in the light, which is definitely the better approach.