? Light effect in darkness. (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
[Help Wanted] SmileBASIC Documentation Project

Light effect in darkness.

  • #1 ✎ 109 Z_E_R_O Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself How would I make a lantern work? Like I want the terrain to be pitch black and only the light can shine through it. Posted
  • #2 ✎ 274 Shelly
    How would I make a lantern work? Like I want the terrain to be pitch black and only the light can shine through it.
    The only way I can think of is to use SPDEF to redefine the sprites. You simply increase the value of R, G, and B, so that it shifts from black to white. Adding color is a different story, kind of.
    Posted
  • #3 ✎ 109 Z_E_R_O Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself I'm experimenting with VISIBLE.. But idk how to manipulate it. Posted
  • #4 ✎ 419 kenchic Avatar Taboo I didn't change my avatar for 180 days Website Third Year My account is over 3 years old Website osu! Is Awesome! I love osu! Express Yourself
    I'm experimenting with VISIBLE.. But idk how to manipulate it.
    it takes booleans to set whether the sprite, graphics, bg, or text layers are visible. pretty sure that isn’t what you want.
    Posted
  • #5 ✎ 1619 12Me21 Head Admin Second Year My account is over 2 years old Website Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself The easiest way is to make a big black sprite with a hole in the middle. (This uses up a lot of room on the sprite page though, and only allows for one light area) You can also use graphics instead, by filling the graphics page with black and drawing circles in it (However, this doesn't allow transparency and you can't use the graphics page for anything else) Posted
  • #6 ✎ 109 Z_E_R_O Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Thanks. i'm going to try to tweak the black sprites deal. That might work. Posted