Page 1 of 1

Lighting Effects

Posted: Fri Nov 25, 2016 3:45 am
by OldSchoolStuff
I am currently using SMBX 1.3.0.1 and I want to know if there's a way to make a room that's dark and the light centers around mario.
Is it possible? I want to use it in a level I'm making..
Thanks (I'm new here sorry XP)

Example
When you go to the back door of Bowser's castle and the room is dark and you have to use the disco ball to light it up

Re: Lighting Effects

Posted: Fri Nov 25, 2016 4:39 am
by Emral
Not on 1.3.0.1. You'll need 2.0 for that.
(before anyone comments "but wait 1.3.0.1 can do lua": 1.3.0.1 is lunadll-autocode, 1.3.0.2 is Lua-integrated smbx.)

Once you got that you'll need to do some pretty advanced scripting to get something like the disco ball to work.
Luckily for you someone's already working on a disco ball API which will be available as part of 2.0 in the future!

More complex stuff (gradients and whatnot) is possible, but might end up being laggy. I suggest waiting for shaders to do that.

If you're just going for a very simple and static effect, like a vignette, you can just make an image and load it into your game with Graphics.loadImage() and Graphics.drawImage(img, x, y)
Image

Re: Lighting Effects

Posted: Fri Nov 25, 2016 5:23 am
by OldSchoolStuff
Enjl wrote:Not on 1.3.0.1. You'll need 2.0 for that.
(before anyone comments "but wait 1.3.0.1 can do lua": 1.3.0.1 is lunadll-autocode, 1.3.0.2 is Lua-integrated smbx.)

Once you got that you'll need to do some pretty advanced scripting to get something like the disco ball to work.
Luckily for you someone's already working on a disco ball API which will be available as part of 2.0 in the future!

More complex stuff (gradients and whatnot) is possible, but might end up being laggy. I suggest waiting for shaders to do that.

If you're just going for a very simple and static effect, like a vignette, you can just make an image and load it into your game with Graphics.loadImage() and Graphics.drawImage(img, x, y)
Image
Thanks for the help ;)

Re: Lighting Effects

Posted: Sun Sep 24, 2017 9:50 pm
by Soronexle
Enjl wrote:Not on 1.3.0.1. You'll need 2.0 for that.
(before anyone comments "but wait 1.3.0.1 can do lua": 1.3.0.1 is lunadll-autocode, 1.3.0.2 is Lua-integrated smbx.)

Once you got that you'll need to do some pretty advanced scripting to get something like the disco ball to work.
Luckily for you someone's already working on a disco ball API which will be available as part of 2.0 in the future!

More complex stuff (gradients and whatnot) is possible, but might end up being laggy. I suggest waiting for shaders to do that.

If you're just going for a very simple and static effect, like a vignette, you can just make an image and load it into your game with Graphics.loadImage() and Graphics.drawImage(img, x, y)
[rimg]http://i.imgur.com/RtD4o2Y.png[/rimg]
Do you just make the image or do you load it? I was planning to use it for a dark cave.

Re: Lighting Effects

Posted: Sun Sep 24, 2017 11:57 pm
by The0x539
Dark Soron wrote:
Enjl wrote:Not on 1.3.0.1. You'll need 2.0 for that.
(before anyone comments "but wait 1.3.0.1 can do lua": 1.3.0.1 is lunadll-autocode, 1.3.0.2 is Lua-integrated smbx.)

Once you got that you'll need to do some pretty advanced scripting to get something like the disco ball to work.
Luckily for you someone's already working on a disco ball API which will be available as part of 2.0 in the future!

More complex stuff (gradients and whatnot) is possible, but might end up being laggy. I suggest waiting for shaders to do that.

If you're just going for a very simple and static effect, like a vignette, you can just make an image and load it into your game with Graphics.loadImage() and Graphics.drawImage(img, x, y)
[rimg]http://i.imgur.com/RtD4o2Y.png[/rimg]
Do you just make the image or do you load it? I was planning to use it for a dark cave.
You draw it with Lua, after loading it into a variable.

Re: Lighting Effects

Posted: Mon Sep 25, 2017 9:59 pm
by HenryRichard
Enjl wrote:Not on 1.3.0.1. You'll need 2.0 for that.
(before anyone comments "but wait 1.3.0.1 can do lua": 1.3.0.1 is lunadll-autocode, 1.3.0.2 is Lua-integrated smbx.)
Wait - 1.3.0.1 has autocode? I thought it was just 1.3 with the graphics and sound effects edited.