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 68 Available
Tue Feb 05, 2019 11:39 am by catventure

» New Release soon
Mon Jan 21, 2019 3:08 pm by catventure

» TAB Version 67 Available
Thu Feb 22, 2018 3:22 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

Share | 

 RE: Sounds & music

View previous topic View next topic Go down 
Experienced Adventurer

Number of posts : 71
Age : 45
Location : Maidstone, Kent, UK
Humor : I shall tear your soul Apart!!!!!
Adventure Points : 32
Registration date : 2009-09-16

PostSubject: RE: Sounds & music   Tue May 03, 2011 6:57 am

Ok im playing a large wav file when im in location 1.

What I want to do is this:

If the player types 'in' i want to stop the first sample thats playing and play a new sample turboliftdoor.wav
Also if the player types out i want to play a sample turboliftdoor.wav

Can you stop and start samples by referring to what the user types. i.e. they type a direction and it plays a sound.



Back to top Go down
View user profile
Admin Adventurer

Number of posts : 382
Age : 66
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 55
Registration date : 2008-06-08

PostSubject: Re: RE: Sounds & music   Tue May 03, 2011 8:56 am

Sure. To do that you would need to 'override' the standard default RESPONSE entry for "go %directn1%" - the basic entry which controls movements between locations in the game...
That means you must put your custom "go XXX" entries ABOVE that one , so it will trigger and execute before the standard entry gets to be processed.

So you need to construct entries very similar to these (with your room numbers of course):

[start]go in#room=XXX[acts]playsampleturboliftdoor.wav#gotoXXX[end]

[start]go out#room=XXX[acts]playsampleturboliftdoor.wav#gotoXXX[end]

action "gotoX" - puts player in stated room and automatically describes it

Hope this helps


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

RE: Sounds & music

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: