Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: N3cropolis 11 on Thu 30/03/2017 21:51:36

Title: I need to know how to light a room with script if I can.
Post by: N3cropolis 11 on Thu 30/03/2017 21:51:36
I'd like to know how to light a room when I press a button or turn on a lamp. Is this basic?
Title: Re: I need to know how to light a room with script if I can.
Post by: Kumpel on Thu 30/03/2017 22:56:34
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

Title: Re: I need to know how to light a room with script if I can.
Post by: dayowlron on Fri 31/03/2017 02:47:35
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.
Title: Re: I need to know how to light a room with script if I can.
Post by: N3cropolis 11 on Fri 31/03/2017 16:48:29
#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: