Lighting Effects

Share and discuss custom SMBX graphics.

Moderator: Userbase Moderators

OldSchoolStuff
Shy Guy
Shy Guy
Posts: 8
Joined: Fri Nov 25, 2016 3:27 am

Lighting Effects

Postby OldSchoolStuff » Fri Nov 25, 2016 3:45 am

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

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9890
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Lighting Effects

Postby Emral » Fri Nov 25, 2016 4:39 am

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

OldSchoolStuff
Shy Guy
Shy Guy
Posts: 8
Joined: Fri Nov 25, 2016 3:27 am

Re: Lighting Effects

Postby OldSchoolStuff » Fri Nov 25, 2016 5:23 am

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 ;)

Soronexle
Swooper
Swooper
Posts: 67
Joined: Sun Jan 29, 2017 10:34 pm
Contact:

Re: Lighting Effects

Postby Soronexle » Sun Sep 24, 2017 9:50 pm

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.

The0x539
Eerie
Eerie
Posts: 751
Joined: Fri Jan 22, 2016 8:02 pm

Re: Lighting Effects

Postby The0x539 » Sun Sep 24, 2017 11:57 pm

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.

HenryRichard
Reznor
Reznor
Posts: 2843
Joined: Mon Dec 23, 2013 12:09 pm
Flair: Is this where I type my password?
Contact:

Re: Lighting Effects

Postby HenryRichard » Mon Sep 25, 2017 9:59 pm

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.


Return to “Graphics”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari