TAB - thinBasic Adventure Builder
Would you like to react to this message? Create an account in a few clicks or log in to continue.

TAB - thinBasic Adventure Builder

T.A.B. is an interactive fiction/text adventure program for Windows and made with thinBasic.
 
HomeLatest imagesSearchRegisterLog in
Latest topics
» How was it done? Implementing in-game clocks
RE: Sounds & music I_icon_minitimeToday at 9:54 am by catventure

» How to engage in intelligent conversation with NPCs?
RE: Sounds & music I_icon_minitimeYesterday at 9:01 pm by catventure

» refine player-available gender/name options
RE: Sounds & music I_icon_minitimeMon Nov 18, 2024 6:04 pm by catventure

» Incubation pt 1
RE: Sounds & music I_icon_minitimeSun Nov 17, 2024 4:22 pm by catventure

» Happy New Year 2024!
RE: Sounds & music I_icon_minitimeSun Dec 31, 2023 4:04 pm by catventure

» TAB Version 71
RE: Sounds & music I_icon_minitimeMon Aug 21, 2023 12:17 pm by catventure

» TAB Version 70
RE: Sounds & music I_icon_minitimeSun Oct 02, 2022 1:49 pm by catventure

» TAB Version 70
RE: Sounds & music I_icon_minitimeFri Sep 30, 2022 10:23 pm by catventure

» TAB Version 70
RE: Sounds & music I_icon_minitimeMon May 23, 2022 4:08 pm by catventure


Share | 
 

 RE: Sounds & music

View previous topic View next topic Go down 
AuthorMessage
stants
Experienced Adventurer
stants

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

RE: Sounds & music Empty
PostSubject: RE: Sounds & music   RE: Sounds & music I_icon_minitimeTue 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.

Thanks

Stants

Back to top Go down
catventure
Admin Adventurer
catventure

Male
Number of posts : 410
Age : 72
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 77
Registration date : 2008-06-08

RE: Sounds & music Empty
PostSubject: Re: RE: Sounds & music   RE: Sounds & music I_icon_minitimeTue 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

Phil.
Back to top Go down
https://adventure.forumotion.com
 

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: