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
sample looping I_icon_minitimeToday at 9:54 am by catventure

» How to engage in intelligent conversation with NPCs?
sample looping I_icon_minitimeYesterday at 9:01 pm by catventure

» refine player-available gender/name options
sample looping I_icon_minitimeMon Nov 18, 2024 6:04 pm by catventure

» Incubation pt 1
sample looping I_icon_minitimeSun Nov 17, 2024 4:22 pm by catventure

» Happy New Year 2024!
sample looping I_icon_minitimeSun Dec 31, 2023 4:04 pm by catventure

» TAB Version 71
sample looping I_icon_minitimeMon Aug 21, 2023 12:17 pm by catventure

» TAB Version 70
sample looping I_icon_minitimeSun Oct 02, 2022 1:49 pm by catventure

» TAB Version 70
sample looping I_icon_minitimeFri Sep 30, 2022 10:23 pm by catventure

» TAB Version 70
sample looping I_icon_minitimeMon May 23, 2022 4:08 pm by catventure


Share | 
 

 sample looping

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

sample looping Empty
PostSubject: sample looping   sample looping I_icon_minitimeWed May 04, 2011 9:33 am

currently when location 1 is displayed (The Bridge) i play a sample. Its quite a long sample.

There is one exit that leads in to the turbolift. When i go in to the turbolift it plays the doorsopeningwav sample and the sample that was being played in loc 1 stops playing which is good and how it should work.

If im in location 2(Turbolift) and i decide to go back out to the Bridge. It doesnt play the first sample which is correct.

I only want the first sample in loc 1 to play once so working correctly except for 1 thing.

If im in loc 1 and i type r for redscribe its playing the sample again. Also if wait until the sample finishes it starts again.

Two questions:

1) How can i stop the sample from playing if the user types r for redescribe
2) The sample starts off as being a looped sample. I do not want this - how do i make the sample just play once without relooping.

Thankyou

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

sample looping Empty
PostSubject: Re: sample looping   sample looping I_icon_minitimeWed May 04, 2011 11:24 am

Hi stants,

Can you show the coding entry that calls the "playsample" action when on the bridge?
Also, I do not know why the sample would continually loop since it is not being called by the "loopsample" action... Could be some internal flag structure inside the sample file which is making it an auto-loop file!?

I'm presuming your entry is in Script 1 (called after location describe)

You could use a flag to prevent repetition of a sample when "look" is typed.
example:

Script1:

[start]room=4#flag15=0[acts]playsamplemysample.wav#flag15=1[end]

Here the sample is played on entrance to the room - but if the room is redescribed it will not be replayed... because the condition flag15=0 will no longer be true.
(you may still hear it if is VERY LONG because it may still be playing thru from when it was initially played; depends when you redescribe the room)

Hopefully, that will work though.


Thanks.

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

sample looping

View previous topic View next topic Back to top 
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: