I need to know how to light a room with script if I can.

Started by N3cropolis 11, Thu 30/03/2017 21:51:36

Previous topic - Next topic

N3cropolis 11

I'd like to know how to light a room when I press a button or turn on a lamp. Is this basic?

Kumpel

Hey N3cropolis 11,

welcome aboard! Nice to see you.
You are dealing with a basically sprite based 2D-engine here. You have to create or find almost everything you want to be seen in the game on your own. To light a room for example you first need to draw/get a room background (preferably dark and with a light switch somewhere). Then you could change the same background and add the illuminated areas after the switch is hit. If you got this far, you can create a room, put in there the two backgrounds, set the hotspot for the light switch (where you want the player to click on to turn on the light), do some script work and playtest your DIY-Lightroom. :=

If you are looking for some semi/pseudo 3D style, then you could do the "drawing" with a 3D-design-software like Blender, render the things you created and put the images in the game. But actually the ways to do it are nearly endless 8-0


dayowlron

Funny you should ask that. I am looking into doing something similar in a game I am working on but that part is still a ways away and I was going to create one background with it dark and another with it light and just changing the background accordingly.
Pro is the opposite of Con                       Kids of today are so much different
This fact can clearly be seen,                  Don't you know?
If progress means to move forward         Just ask them where they are from
Then what does congress mean?             And they tell you where you can go.  --Nipsey Russell

N3cropolis 11

#Kumpel

Thank you for welcoming me! And, I should use blender for semi-3D styles? I would love to do that, something a little more advanced. I think that's what I am going for, thank you for the advice :smiley:

SMF spam blocked by CleanTalk