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 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

» sizex=y action ...
Thu Aug 09, 2012 11:29 am by catventure


Share | 
 

 sample looping

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

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

PostSubject: sample looping   Wed 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
avatar

Male
Number of posts : 376
Age : 64
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 52
Registration date : 2008-06-08

PostSubject: Re: sample looping   Wed 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.rpgdynasty.com
 

sample looping

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: