TAB - thinBasic Adventure Builder

T.A.B. is an interactive fiction/text adventure program for Windows and made with thinBasic.
HomeFAQSearchUsergroupsRegisterLog in
Latest topics
» TAB Version 67 Available
Yesterday at 5:01 pm by catventure

» TAB Version 66 Available
Mon Sep 26, 2016 12:02 pm by catventure

» TAB Version 65 Available
Mon Feb 23, 2015 12:04 pm by catventure

» Incubation pt 1
Wed Apr 24, 2013 9:24 am by Kabrinski

» Charecter movements - doors
Wed Mar 20, 2013 2:55 pm by garethfx

» Member feedback on game planning
Sun Mar 03, 2013 1:47 pm by garethfx

» Still alive - just!
Thu Feb 28, 2013 11:34 am by catventure

» TAB 64 crashes ...
Mon Aug 20, 2012 11:31 am by acko

» Idea on addition to object being container
Sat Aug 18, 2012 3:49 pm by catventure

Share | 

 light source

View previous topic View next topic Go down 
Apprentice Adventurer

Number of posts : 35
Age : 69
Adventure Points : 0
Registration date : 2008-06-10

PostSubject: light source   Fri Aug 22, 2008 2:41 pm

Is there a way to switch the light source on and off? What I mean is how to have a light source such as a torch and then when it is used up have it changed to not being a light source.

Back to top Go down
View user profile
Admin Adventurer

Number of posts : 377
Age : 65
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 53
Registration date : 2008-06-08

PostSubject: Re: light source   Fri Aug 22, 2008 5:14 pm

Hi Sandy,

I'm afraid there are no action commands present in TAB yet for changing the lightsource status of an object.
In other words if you assign a lightsource attribute to an object in the Object Editor then there is not a way to turn that off during the game.
However, this is something new I can think about implementing for the next release...

One thing you can do is to remove the "lantern" from the game when it is used up by using an action such as 'destroyX' or 'objlocX=0'

Alternatively you could create 2 lantern objects.

For instance a 'lit lantern' and an 'unlit lantern' and use the procedure similar to the "torch" example in the below forum topic.
This requires a bit of extra coding though so please read it carefully.


_________________ ; Home of the TAB I.F. project.
Back to top Go down
View user profile

light source

View previous topic View next topic Back to top 

 Similar topics

Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
TAB - thinBasic Adventure Builder :: TAB FORUMS :: General Forum-
Jump to: