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
sample looping I_icon_minitimeTue Feb 05, 2019 11:39 am by catventure

» New Release soon
sample looping I_icon_minitimeMon Jan 21, 2019 3:08 pm by catventure

» TAB Version 67 Available
sample looping I_icon_minitimeThu Feb 22, 2018 3:22 pm by catventure

» TAB Version 66 Available
sample looping I_icon_minitimeMon Sep 26, 2016 12:02 pm by catventure

» TAB Version 65 Available
sample looping I_icon_minitimeMon Feb 23, 2015 12:04 pm by catventure

» Incubation pt 1
sample looping I_icon_minitimeWed Apr 24, 2013 9:24 am by Kabrinski

» Charecter movements - doors
sample looping I_icon_minitimeWed Mar 20, 2013 2:55 pm by garethfx

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

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


Share | 
 

 sample looping

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

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

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
View user profile
catventure
Admin Adventurer
catventure

Male
Number of posts : 382
Age : 66
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 55
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.

_________________
http://tab.thinbasic.com ; Home of the TAB I.F. project.
Back to top Go down
View user profile http://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: